[yum-commits] Branch 'yum-3_2_X' - rpmUtils/oldUtils.py test/yum-leak-test.py yum/misc.py
James Antill
james at osuosl.org
Mon Mar 30 14:20:39 UTC 2009
rpmUtils/oldUtils.py | 2 ++
test/yum-leak-test.py | 2 +-
yum/misc.py | 5 ++++-
3 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 411b90012c6422bf945a2ea03911227fd5404b18
Author: James Antill <james at and.org>
Date: Mon Mar 30 10:20:11 2009 -0400
Re-add and document API in yum.misc for unicode/utf8
diff --git a/rpmUtils/oldUtils.py b/rpmUtils/oldUtils.py
index 5011e8f..8957685 100644
--- a/rpmUtils/oldUtils.py
+++ b/rpmUtils/oldUtils.py
@@ -17,6 +17,8 @@ def _(msg):
return msg
+# pylint: disable-msg=E0602
+
def checkheader(headerfile, name, arch):
"""check a header by opening it and comparing the results to the name and arch
we believe it to be for. if it fails raise URLGrabError(-1)"""
diff --git a/test/yum-leak-test.py b/test/yum-leak-test.py
index bce4550..299db51 100755
--- a/test/yum-leak-test.py
+++ b/test/yum-leak-test.py
@@ -1,6 +1,6 @@
#! /usr/bin/python -tt
-import yum, os, sys, time, gc
+import yum, os, time, gc
from urlgrabber.progress import format_number
def out_mem(pid):
diff --git a/yum/misc.py b/yum/misc.py
index 008fec2..6daf4f1 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -43,7 +43,10 @@ except ImportError:
raise ValueError, "Bad checksum type"
from Errors import MiscError
-from i18n import to_utf8
+# These are API things, so we can't remove them even if they aren't used here.
+# pylint: disable-msg=W0611
+from i18n import to_utf8, to_unicode
+# pylint: enable-msg=W0611
_share_data_store = {}
_share_data_store_u = {}
More information about the Yum-commits
mailing list