src/setup.py
changeset 188 00cf90eb0f5a
parent 179 e7c7e6e0a8bc
--- a/src/setup.py	Fri Nov 30 22:05:02 2018 +0100
+++ b/src/setup.py	Sat Dec 01 02:38:12 2018 +0100
@@ -61,8 +61,8 @@
         with os.fdopen(fh,'w') as temp_file:
             with open(filepath, 'r') as initfiles:
                 for l in initfiles:
-                    if re.match(r"\s*VERSION\s*=\s*\(\d+\s*,\s*\d+\s*,\s*\d+,\s*\".+\",\s*.+\s*\)", l):
-                        temp_file.write("VERSION = %r" % (self.version_tuple,))
+                    if re.match(r"\s*VERSION\s*=\s*\(\d+\s*,\s*\d+\s*,\s*\d+,\s*[\"\'].+[\"\'],\s*.+\s*\)", l):
+                        temp_file.write("VERSION = %r\n" % (self.version_tuple,))
                     else:
                         temp_file.write(l)
         os.remove(filepath)