View Single Post
08-20-10, 12:07 AM   #46
Adys
A Deviate Faerie Dragon
 
Adys's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 19
Originally Posted by Vladinator View Post
Adys, I think Jerome is a cool name.

Could you post a really short sample?
patchFile = open("wow-12345-patch/testfile.lua") # patch file
oldFile = open("old/testfile.lua")
f = PatchFile(patchFile)

print f.apply(oldFile.read())

oldFile.close()