Python 3.x bug in getting parameter of ** argument

This commit is contained in:
rocky
2016-09-05 22:33:59 -04:00
parent 318311818e
commit 60b25f7596
2 changed files with 8 additions and 0 deletions

View File

@@ -2,3 +2,11 @@
# Bug is getting params correct: timeout before **kwargs
def call(*popenargs, timeout=None, **kwargs):
return
# From 3.4 asyncio/base_events.py
# Bug was in pickin up name of ** (kwargs)
def subprocess_shell(self, protocol_factory, cmd, *, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=False, shell=True, bufsize=0,
**kwargs):
return