fixed a bug in python search/replace script

This commit is contained in:
Rohit Gupta
2015-11-11 15:10:49 +01:00
parent f13b40c65f
commit d09051a83a
+1 -1
View File
@@ -20,7 +20,7 @@ file.close()
if keyword == 'mme_ip_address':
#string = (re.sub(r"mme_ip_address\s*=\s*\([^\$]+)\)\s*;\s*", r"<% tex \1 %>", t, re.M)
replacement_text = keyword + ' = ({' + replacement_text + ')} ; '
replacement_text = keyword + ' = ( { ' + replacement_text + ' } ) ; '
string = re.sub(r"mme_ip_address\s*=\s*\(([^\$]+?)\)\s*;", replacement_text, string, re.M)
elif keyword == 'N_RB_DL':
replacement_text = keyword + ' = ' + replacement_text + ' ; '