[PATCH 17/34] Finish taking care of pylint warnings in image.py.

Chris Lumens clumens at redhat.com
Mon Aug 12 20:32:53 UTC 2013


---
 pyanaconda/image.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index de8b772..e8e3908 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -40,7 +40,7 @@ def findFirstIsoImage(path):
     Returns the basename of the image
     """
     try:
-        flush = os.stat(path)
+        os.stat(path)
     except OSError:
         return None
 
@@ -233,7 +233,8 @@ def verifyMedia(tree, timestamp=None):
         f = open("%s/.discinfo" % tree)
 
         newStamp = f.readline().strip()
-        descr = f.readline().strip()
+        # Next is the description, which we just want to throw away.
+        _ = f.readline()
         arch = f.readline().strip()
         f.close()
 
-- 
1.8.1.2



More information about the anaconda-patches mailing list