************* Module cli
W0611: 51: Unused import parsePackages
************* Module shell
W0611: 26: Unused import _
************* Module yummain
W0611: 32: Unused import to_unicode
************* Module yum.depsolve
W0611: 35: Unused import packages
---
 cli.py          |    2 ++
 shell.py        |    2 +-
 yum/depsolve.py |    1 -
 yummain.py      |    2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cli.py b/cli.py
index bbe8e55..7bd341d 100755
--- a/cli.py
+++ b/cli.py
@@ -48,7 +48,9 @@ from yum.i18n import to_unicode, to_utf8, exception2msg
 #  This is for yum-utils/yumdownloader in RHEL-5, where it isn't importing this
 # directly but did do "from cli import *", and we did have this in 3.2.22. I
 # just _love_ how python re-exports these by default.
+# pylint: disable-msg=W0611
 from yum.packages import parsePackages
+# pylint: enable-msg=W0611
 
 def sigquit(signum, frame):
     """SIGQUIT handler for the yum cli.  This function will print an
diff --git a/shell.py b/shell.py
index 34a492e..2232b03 100644
--- a/shell.py
+++ b/shell.py
@@ -23,7 +23,7 @@ import cmd
 import shlex
 import logging
 
-from yum import Errors, _
+from yum import Errors
 from yum.constants import *
 import yum.logginglevels as logginglevels
 from yum.i18n import to_utf8
diff --git a/yum/depsolve.py b/yum/depsolve.py
index c518311..720188c 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -32,7 +32,6 @@ import rpm
 
 from packageSack import ListPackageSack
 from constants import *
-import packages
 import logginglevels
 import Errors
 import warnings
diff --git a/yummain.py b/yummain.py
index 58179d2..12582d2 100755
--- a/yummain.py
+++ b/yummain.py
@@ -29,7 +29,7 @@ from yum import Errors
 from yum import plugins
 from yum import logginglevels
 from yum import _
-from yum.i18n import to_unicode, utf8_width, exception2msg
+from yum.i18n import utf8_width, exception2msg
 import yum.misc
 import cli
 from utils import suppress_keyboard_interrupt_message, show_lock_owner
-- 
1.7.1

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to