eric6/DebugClients/Python/AsyncFile.py

changeset 7639
422fd05e9c91
parent 7360
9190402e4505
child 7646
39e3db2b4936
child 7707
6abcf4275d0e
diff -r 176145438b1e -r 422fd05e9c91 eric6/DebugClients/Python/AsyncFile.py
--- a/eric6/DebugClients/Python/AsyncFile.py	Thu Jun 25 19:09:55 2020 +0200
+++ b/eric6/DebugClients/Python/AsyncFile.py	Sat Jun 27 12:08:12 2020 +0200
@@ -12,12 +12,6 @@
 
 from DebugUtilities import prepareJsonCommand
 
-try:
-    unicode
-except NameError:
-    unicode = str
-    raw_input = input
-
 
 def AsyncPendingWrite(file):
     """
@@ -180,7 +174,7 @@
         """
         self.__checkMode('r')
 
-        buf = raw_input()
+        buf = input()
         if size >= 0:
             buf = buf[:size]
         return buf
@@ -278,7 +272,7 @@
         """
         self.__checkMode('r')
 
-        line = raw_input() + '\n'
+        line = input() + '\n'
         if sizehint >= 0:
             line = line[:sizehint]
         return line
@@ -369,6 +363,3 @@
         @type list of str
         """
         self.write("".join(lines))
-
-#
-# eflag: noqa = M702

eric ide

mercurial