DebugClients/Python3/AsyncFile.py

changeset 2987
c99695c0f13a
parent 2953
703452a2876f
child 3160
209a07d7e401
diff -r cd4e2cab7eb2 -r c99695c0f13a DebugClients/Python3/AsyncFile.py
--- a/DebugClients/Python3/AsyncFile.py	Sun Oct 06 17:27:53 2013 +0200
+++ b/DebugClients/Python3/AsyncFile.py	Sun Oct 06 18:02:21 2013 +0200
@@ -4,7 +4,8 @@
 #
 
 """
-Module implementing an asynchronous file like socket interface for the debugger.
+Module implementing an asynchronous file like socket interface for the
+debugger.
 """
 
 import socket
@@ -101,7 +102,8 @@
         """
         Public method to close the file.
         
-        @param closeit flag to indicate a close ordered by the debugger code (boolean)
+        @param closeit flag to indicate a close ordered by the debugger code
+            (boolean)
         """
         if closeit and not self.closed:
             self.flush()
@@ -301,10 +303,11 @@
         if not self.wpending:
             self.wpending = s
         elif len(self.wpending) + len(s) > self.maxbuffersize:
-            # flush wpending so that different string types are not concatenated
+            # flush wpending so that different string types are not
+            # concatenated
             while self.wpending:
-                # if we have a persistent error in sending the data, an exception
-                # will be raised in __nWrite
+                # if we have a persistent error in sending the data, an
+                # exception will be raised in __nWrite
                 self.flush()
                 tries += 1
                 if tries > self.maxtries:

eric ide

mercurial