diff options
author | dluyer <53582923+dluyer@users.noreply.github.com> | 2020-01-09 14:31:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 14:31:11 -0800 |
commit | 7db2929598d15cfb664dd910fe5329929de4ef95 (patch) | |
tree | ec0bfd53f8e985899f78707caeb2525b201efcf4 /examples/hive.py | |
parent | e99f21c595af125a72d8fbb5bc562917ba24eff9 (diff) | |
parent | 692681f719ecca280c77e3a04c24ef8be64696a4 (diff) | |
download | pexpect-git-7db2929598d15cfb664dd910fe5329929de4ef95.tar.gz |
Merge pull request #4 from pexpect/master
Merge updates from master
Diffstat (limited to 'examples/hive.py')
-rwxr-xr-x | examples/hive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hive.py b/examples/hive.py index 1b7bcbf..0d34b03 100755 --- a/examples/hive.py +++ b/examples/hive.py @@ -94,7 +94,7 @@ import readline import atexit try: import pexpect - import pxssh + from pexpect import pxssh except ImportError: sys.stderr.write("You do not have 'pexpect' installed.\n") sys.stderr.write("On Ubuntu you need the 'python-pexpect' package.\n") @@ -436,7 +436,7 @@ def resync (hive, hive_names, timeout=2, max_attempts=5): def parse_host_connect_string (hcs): '''This parses a host connection string in the form - username:password@hostname:port. All fields are options expcet hostname. A + username:password@hostname:port. All fields are optional except hostname. A dictionary is returned with all four keys. Keys that were not included are set to empty strings ''. Note that if your password has the '@' character then you must backslash escape it. ''' |