fixed: made it less fuzzy
This commit is contained in:
parent
6d3b2ea9b4
commit
fd975dbb04
1 changed files with 3 additions and 2 deletions
5
patch.py
5
patch.py
|
@ -6,9 +6,10 @@ orig=open(sys.argv[2],"r")
|
|||
origlines = orig.readlines()
|
||||
|
||||
for idx,oline in enumerate(origlines):
|
||||
subst = oline.split('=')
|
||||
osubst = oline.split('=')
|
||||
for idx1,pline in enumerate(patch):
|
||||
if subst[0] in pline:
|
||||
psubst = pline.split('=')
|
||||
if osubst[0] == psubst[0]:
|
||||
origlines[idx] = pline
|
||||
patch.pop(idx1)
|
||||
origlines += patch
|
||||
|
|
Loading…
Reference in a new issue