summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2019-11-11 08:15:44 +0000
committerGitHub <noreply@github.com>2019-11-11 08:15:44 +0000
commit7b073bfa10209d6b3836d7b3e2429df89e7bf305 (patch)
tree70cbd8609ec3958a7a03a7de978738752b31c75a
parent4a64a9ca400aaecbe804f32120e66f815b74a686 (diff)
parent76f3f4f4fff6e1981111278b9bcbad9b75b52b82 (diff)
downloadpexpect-git-7b073bfa10209d6b3836d7b3e2429df89e7bf305.tar.gz
Merge pull request #600 from wataash/fix-import-path
Fix old import path
-rwxr-xr-xexamples/astat.py2
-rwxr-xr-xexamples/chess.py2
-rwxr-xr-xexamples/chess2.py2
-rwxr-xr-xexamples/chess3.py2
-rwxr-xr-xexamples/hive.py2
-rwxr-xr-xexamples/topip.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/examples/astat.py b/examples/astat.py
index abba1be..50937a3 100755
--- a/examples/astat.py
+++ b/examples/astat.py
@@ -38,7 +38,7 @@ import os
import sys
import getopt
import getpass
-import pxssh
+from pexpect import pxssh
try:
diff --git a/examples/chess.py b/examples/chess.py
index f97a3a9..a15fd94 100755
--- a/examples/chess.py
+++ b/examples/chess.py
@@ -27,7 +27,7 @@ from __future__ import print_function
from __future__ import absolute_import
import pexpect
-import ANSI
+from pexpect import ANSI
REGEX_MOVE = r'(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)'
REGEX_MOVE_PART = r'(?:[0-9]|\x1b\[C)(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)'
diff --git a/examples/chess2.py b/examples/chess2.py
index b92509e..f8a7c24 100755
--- a/examples/chess2.py
+++ b/examples/chess2.py
@@ -27,7 +27,7 @@ from __future__ import print_function
from __future__ import absolute_import
import pexpect
-import ANSI
+from pexpect import ANSI
import sys
import time
diff --git a/examples/chess3.py b/examples/chess3.py
index 2c087b0..e3e6200 100755
--- a/examples/chess3.py
+++ b/examples/chess3.py
@@ -27,7 +27,7 @@ from __future__ import print_function
from __future__ import absolute_import
import pexpect
-import ANSI
+from pexpect import ANSI
REGEX_MOVE = r'(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)'
REGEX_MOVE_PART = r'(?:[0-9]|\x1b\[C)(?:[a-z]|\x1b\[C)(?:[0-9]|\x1b\[C)'
diff --git a/examples/hive.py b/examples/hive.py
index 1b7bcbf..43eeb04 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")
diff --git a/examples/topip.py b/examples/topip.py
index 64dac30..9cf3824 100755
--- a/examples/topip.py
+++ b/examples/topip.py
@@ -70,7 +70,7 @@ from __future__ import unicode_literals
# See http://pexpect.sourceforge.net/
import pexpect
-import pxssh
+from pexpect import pxssh
import os
import sys
import time