commit: 68a8b09d7dfd5d36c79b1076fff73c0e51613b45
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 18:55:35 2022 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue May 31 18:55:35 2022 +0000
URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=68a8b09d
setup.py: Fix logging in set_version
Fixes regresiion in 4cd4fb6280433f301ad9159f7473dc32ceb063d6
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 7c4165c..0d68f07 100755
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,7 @@
from __future__ import print_function
+import logging
import re
import sys
import os
@@ -56,7 +57,7 @@ class set_version(Command):
for line in s:
newline = re.sub(pattern,
'"%s"' % ver, line, 1)
if newline != line:
- log.info("%s: %s" % (f,
newline))
+ logging.info("%s: %s" %
(f, newline))
updated_file.append(newline)
with io.open(f, 'w', 1, 'utf_8') as s:
s.writelines(updated_file)