Removed some pyflakes warnings in the Python2 debugger backend.

Mon, 03 Jan 2011 17:41:20 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 03 Jan 2011 17:41:20 +0100
changeset 803
86f10944dc83
parent 802
e8882d16384c
child 804
3465556892de

Removed some pyflakes warnings in the Python2 debugger backend.

DebugClients/Python/AsyncFile.py file | annotate | diff | comparison | revisions
DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/AsyncFile.py	Mon Jan 03 17:10:45 2011 +0100
+++ b/DebugClients/Python/AsyncFile.py	Mon Jan 03 17:41:20 2011 +0100
@@ -8,9 +8,8 @@
 """
 
 import socket
-import sys
 
-from DebugProtocol import EOT, RequestOK
+from DebugProtocol import EOT
 
 
 def AsyncPendingWrite(file):
--- a/DebugClients/Python/DebugBase.py	Mon Jan 03 17:10:45 2011 +0100
+++ b/DebugClients/Python/DebugBase.py	Mon Jan 03 17:41:20 2011 +0100
@@ -8,7 +8,6 @@
 """
 
 import sys
-import traceback
 import bdb
 import os
 import types
@@ -25,7 +24,6 @@
     
     @param s data to be printed
     """
-    import sys
     sys.__stderr__.write('%s\n' % unicode(s))
     sys.__stderr__.flush()
 
--- a/DebugClients/Python/DebugClientBase.py	Mon Jan 03 17:10:45 2011 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Mon Jan 03 17:41:20 2011 +0100
@@ -16,12 +16,11 @@
 import time
 import imp
 import re
-import distutils.sysconfig
 
 
 from DebugProtocol import *
 import DebugClientCapabilities
-from DebugBase import setRecursionLimit, printerr
+from DebugBase import setRecursionLimit, printerr   # __IGNORE_WARNING__
 from AsyncFile import *
 from DebugConfig import ConfigVarTypeStrings
 from FlexCompleter import Completer
@@ -933,7 +932,7 @@
         @return client capabilities (integer)
         """
         try:
-            import PyProfile
+            import PyProfile    # __IGNORE_WARNING__
             try:
                 del sys.modules['PyProfile']
             except KeyError:

eric ide

mercurial