1 |
commit: 68a8b09d7dfd5d36c79b1076fff73c0e51613b45 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 18:55:35 2022 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 18:55:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=68a8b09d |
7 |
|
8 |
setup.py: Fix logging in set_version |
9 |
|
10 |
Fixes regresiion in 4cd4fb6280433f301ad9159f7473dc32ceb063d6 |
11 |
|
12 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
13 |
|
14 |
setup.py | 3 ++- |
15 |
1 file changed, 2 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/setup.py b/setup.py |
18 |
index 7c4165c..0d68f07 100755 |
19 |
--- a/setup.py |
20 |
+++ b/setup.py |
21 |
@@ -4,6 +4,7 @@ |
22 |
from __future__ import print_function |
23 |
|
24 |
|
25 |
+import logging |
26 |
import re |
27 |
import sys |
28 |
import os |
29 |
@@ -56,7 +57,7 @@ class set_version(Command): |
30 |
for line in s: |
31 |
newline = re.sub(pattern, '"%s"' % ver, line, 1) |
32 |
if newline != line: |
33 |
- log.info("%s: %s" % (f, newline)) |
34 |
+ logging.info("%s: %s" % (f, newline)) |
35 |
updated_file.append(newline) |
36 |
with io.open(f, 'w', 1, 'utf_8') as s: |
37 |
s.writelines(updated_file) |