Merge pull request #385 from moreati/python-3.x-cleanups

Test with Tox on Python 3.x
issue72
dw 6 years ago committed by GitHub
commit ad44ad16f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -374,7 +374,7 @@ def io_op(func, *args):
:returns: :returns:
Tuple of `(return_value, disconnected)`, where `return_value` is the Tuple of `(return_value, disconnected)`, where `return_value` is the
return value of `func(\*args)`, and `disconnected` is :data:`True` if return value of `func(*args)`, and `disconnected` is :data:`True` if
disconnection was detected, otherwise :data:`False`. disconnection was detected, otherwise :data:`False`.
""" """
while True: while True:

@ -1280,7 +1280,7 @@ class CallChain(object):
def call_async(self, fn, *args, **kwargs): def call_async(self, fn, *args, **kwargs):
""" """
Arrange for `fn(\*args, \**kwargs)` to be invoked on the context's main Arrange for `fn(*args, **kwargs)` to be invoked on the context's main
thread. thread.
:param fn: :param fn:

@ -291,8 +291,8 @@ class Stream(mitogen.parent.Stream):
raise HostKeyError(self.hostkey_failed_msg) raise HostKeyError(self.hostkey_failed_msg)
elif buf.lower().startswith(( elif buf.lower().startswith((
PERMDENIED_PROMPT, PERMDENIED_PROMPT,
b("%s@%s: %s" % (self.username, self.hostname, b("%s@%s: " % (self.username, self.hostname))
PERMDENIED_PROMPT)), + PERMDENIED_PROMPT,
)): )):
# issue #271: work around conflict with user shell reporting # issue #271: work around conflict with user shell reporting
# 'permission denied' e.g. during chdir($HOME) by only matching # 'permission denied' e.g. during chdir($HOME) by only matching

@ -2,6 +2,8 @@
envlist = envlist =
py26, py26,
py27, py27,
py35,
py36,
[testenv] [testenv]
deps = deps =

Loading…
Cancel
Save