Commits

Anonymous committed 23cdaf9

fixed: async_sub.py bug, appending '\r\n' windows line ends to strings sent to processes.

  • Participants
  • Parent commits 384960d

Comments (0)

Files changed (1)

         return ''.join(y)
         
     def send_all(self, data):
-        data += '\r\n'
         while len(data):
             sent = self.send(data)
             if sent is None:
         ret_code, response = proc_in_time_or_kill(
             "%s %s" % (sys.executable, temp_file), time_out = 1
         )
+        
+        os.remove(temp_file)
 
         self.assert_(
             ret_code.startswith('"Process timed out') and
     if 1:
         unittest.main()
     else:
-        _example()
+        _example()