From 76f3f4f4fff6e1981111278b9bcbad9b75b52b82 Mon Sep 17 00:00:00 2001 From: Wataru Ashihara Date: Sun, 10 Nov 2019 22:32:02 +0900 Subject: Fix old import path --- examples/astat.py | 2 +- examples/chess.py | 2 +- examples/chess2.py | 2 +- examples/chess3.py | 2 +- examples/hive.py | 2 +- examples/topip.py | 2 +- 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 -- cgit v1.2.1