summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 23e9b36..6299ac8 100755
--- a/setup.py
+++ b/setup.py
@@ -86,11 +86,11 @@ class set_version(core.Command):
def sub(files, pattern):
for f in files:
updated_file = []
- with io.open(f[0], "r", 1, "utf_8") as s:
+ with open(f[0], "r", 1, "utf_8") as s:
for line in s:
newline = re.sub(pattern % f[1], '"%s"' % ver, line, 1)
updated_file.append(newline)
- with io.open(f[0], "w", 1, "utf_8") as s:
+ with open(f[0], "w", 1, "utf_8") as s:
s.writelines(updated_file)
quote = r'[\'"]{1}'