Bug 1232466 - Hack around use of re.sub(..., flags=). r=me a=bustage
authorNick Alexander <nalexander@mozilla.com>
Mon, 14 Dec 2015 20:50:25 -0800
changeset 305811 d1a4b331d80bc4daea15a7df4057205483b1f276
parent 305810 10dcb76438d528861ecdca4ece8a42afa8df3cb5
child 305812 73c801461275eb575000c70562d6aba3fb948cc0
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, bustage
bugs1232466
milestone44.0
Bug 1232466 - Hack around use of re.sub(..., flags=). r=me a=bustage Pushing to try to address bustage on a CLOSED TREE.
config/printconfigsetting.py
--- a/config/printconfigsetting.py
+++ b/config/printconfigsetting.py
@@ -9,17 +9,17 @@ from StringIO import StringIO
 
 try:
     (file, section, key) = sys.argv[1:]
 except ValueError:
     print "Usage: printconfigsetting.py <file> <section> <setting>"
     sys.exit(1)
 
 with open(file) as fh:
-    content = re.sub('^\s*;', '#', fh.read(), flags=re.M)
+    content = re.sub(re.compile('^\s*;', re.M), '#', fh.read())
 
 c = configobj.ConfigObj(StringIO(content))
 
 try:
     s = c[section]
 except KeyError:
     print >>sys.stderr, "Section [%s] not found." % section
     sys.exit(1)