]> granicus.if.org Git - python/commitdiff
asyncio: Fix trailing whitespace/code style
authorYury Selivanov <yury@magic.io>
Fri, 3 Mar 2017 04:25:31 +0000 (23:25 -0500)
committerYury Selivanov <yury@magic.io>
Fri, 3 Mar 2017 04:25:31 +0000 (23:25 -0500)
Lib/asyncio/subprocess.py
Lib/test/test_asyncio/test_subprocess.py

index 06c7d4f7e4be3b81ee9e6437d9cffae318a595a3..4c85466859f8f0f195d5fd0fc72c269b7cdca2b8 100644 (file)
@@ -89,7 +89,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
                 reader.feed_eof()
             else:
                 reader.set_exception(exc)
-        
+
         if fd in self._pipe_fds:
             self._pipe_fds.remove(fd)
         self._maybe_close_transport()
@@ -97,7 +97,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
     def process_exited(self):
         self._process_exited = True
         self._maybe_close_transport()
-        
+
     def _maybe_close_transport(self):
         if len(self._pipe_fds) == 0 and self._process_exited:
             self._transport.close()
index 407e8b6a7aa428fb9ee4f0ce50523dc5cfffda36..2e14a8a9735535719f4d22281b73a1a630f349d7 100644 (file)
@@ -468,9 +468,11 @@ class SubprocessMixin:
                               'sys.stdout.flush()',
                               'sys.exit(1)'])
 
-            fut = asyncio.create_subprocess_exec(sys.executable, '-c', code,            
-                                     stdout=asyncio.subprocess.PIPE,
-                                                 loop=self.loop)
+            fut = asyncio.create_subprocess_exec(
+                sys.executable, '-c', code,
+                stdout=asyncio.subprocess.PIPE,
+                loop=self.loop)
+
             process = yield from fut
             while True:
                 data = yield from process.stdout.read(65536)
@@ -480,7 +482,7 @@ class SubprocessMixin:
                     break
 
         self.loop.run_until_complete(execute())
-                                                
+
 
 if sys.platform != 'win32':
     # Unix