aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-05-31 11:55:35 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-05-31 11:55:35 -0700
commit68a8b09d7dfd5d36c79b1076fff73c0e51613b45 (patch)
tree7d50cf33e30b4be3a8d6ad376b667ddddebb5cf0
parentmain.py: Add indented backslash capability to multilne GENTOO_MIRRORS (diff)
downloadmirrorselect-68a8b09d7dfd5d36c79b1076fff73c0e51613b45.tar.gz
mirrorselect-68a8b09d7dfd5d36c79b1076fff73c0e51613b45.tar.bz2
mirrorselect-68a8b09d7dfd5d36c79b1076fff73c0e51613b45.zip
setup.py: Fix logging in set_version
Fixes regresiion in 4cd4fb6280433f301ad9159f7473dc32ceb063d6 Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
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)