[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PATCH: remove statement without effect to make pychecker happy



subject says it all:

diff --git a/iutil.py b/iutil.py
index c39f642..f13956f 100644
--- a/iutil.py
+++ b/iutil.py
@@ -115,8 +115,6 @@ def execWithCapture(command, argv, stdin = 0, stderr = 2, root='/'):

     if type(stderr) == type("string"):
         stderr = open(stderr, "w")
-    else:
-        stderr = stderr

     runningLog = open("/tmp/program.log", "a")
     runningLog.write("Running... %s\n" % ([command] + argv,))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]