diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-02-14 16:46:10 -0800 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-02-14 16:46:10 -0800 |
commit | 5c56db7fa390af992e2055cb66d7b06faeba7ea8 (patch) | |
tree | 09896eb7692c511dac36f71ed62884afcc589a76 /pexpect/__init__.py | |
parent | 983798b20960aef3cfc25bbe8fd965516bcfac0b (diff) | |
download | pexpect-git-5c56db7fa390af992e2055cb66d7b06faeba7ea8.tar.gz |
PEP8: do not use backslash continuation char '\'
"Continuation lines should align ... using
Python's implicit line joining inside parentheses"
Diffstat (limited to 'pexpect/__init__.py')
-rw-r--r-- | pexpect/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py index 163bfae..3c25e21 100644 --- a/pexpect/__init__.py +++ b/pexpect/__init__.py @@ -206,8 +206,8 @@ def _run(command, timeout, withexitstatus, events, extra_args, logfile, cwd, child_result_list.append(child.before) if isinstance(responses[index], child.allowed_string_types): child.send(responses[index]) - elif isinstance(responses[index], types.FunctionType) or \ - isinstance(responses[index], types.MethodType): + elif (isinstance(responses[index], types.FunctionType) or + isinstance(responses[index], types.MethodType)): callback_result = responses[index](locals()) sys.stdout.flush() if isinstance(callback_result, child.allowed_string_types): |