1 |
commit: 4e06e9f032ed187ce682434955778c3241854e26 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 20 20:19:06 2015 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 20 20:19:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4e06e9f0 |
7 |
|
8 |
Remove useless print() in set_version |
9 |
|
10 |
This was causing a TypeError in python3. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/568906 |
13 |
|
14 |
setup.py | 3 --- |
15 |
1 file changed, 3 deletions(-) |
16 |
|
17 |
diff --git a/setup.py b/setup.py |
18 |
index b32b7d6..01e4b3e 100755 |
19 |
--- a/setup.py |
20 |
+++ b/setup.py |
21 |
@@ -80,9 +80,6 @@ class set_version(core.Command): |
22 |
with io.open(f[0], 'r', 1, 'utf_8') as s: |
23 |
for line in s: |
24 |
newline = re.sub(pattern %f[1], '"%s"' % ver, line, 1) |
25 |
- if newline != line: |
26 |
- #log.info("%s: %s" % (f, newline)) |
27 |
- print("%s: %s" % (f[0], newline.encode('utf_8').strip('\n'))) |
28 |
updated_file.append(newline) |
29 |
with io.open(f[0], 'w', 1, 'utf_8') as s: |
30 |
s.writelines(updated_file) |