git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing inc/decref for multicontent template
[enigma2.git]
/
lib
/
python
/
enigma_py_patcher.py
diff --git
a/lib/python/enigma_py_patcher.py
b/lib/python/enigma_py_patcher.py
index 52f9d2327e73ca4602d9bd45e9db8600cf50dca9..1d49cc6c45b45fc23eb58c62a72104632da65ba4 100644
(file)
--- a/
lib/python/enigma_py_patcher.py
+++ b/
lib/python/enigma_py_patcher.py
@@
-11,7
+11,6
@@
line=1
for str in source.readlines():
oldstr = str[:]
str = str.replace('_ENUMS)', ')')
for str in source.readlines():
oldstr = str[:]
str = str.replace('_ENUMS)', ')')
- str = str.replace('_REPLACE)', ')')
pos = str.find('_ENUMS')
if pos != -1:
pos = str.find('_ENUMS')
if pos != -1:
@@
-22,16
+21,6
@@
for str in source.readlines():
if tmpstr.find('_enigma.') == -1:
str = str[:pos]+str[pos+6:]
if tmpstr.find('_enigma.') == -1:
str = str[:pos]+str[pos+6:]
- pos = str.find('_REPLACE')
- if pos != -1:
- spacepos = pos
- while spacepos > 0 and str[spacepos] != ' ':
- spacepos -= 1
- tmpstr = str[spacepos:pos]
- if tmpstr.find('_enigma.') == -1:
- str = str[:pos]+str[pos+8:]
-
-
if oldstr != str:
print "!!! Patch enigma.py line %d\n%s\n%s" %(line, oldstr[:len(oldstr)-1], str)
if oldstr != str:
print "!!! Patch enigma.py line %d\n%s\n%s" %(line, oldstr[:len(oldstr)-1], str)