diff options
author | jquast <contact@jeffquast.com> | 2013-09-22 19:34:42 -0700 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2013-09-22 19:34:42 -0700 |
commit | 1cdb7bcd1d7e6f78bb4cf145ae3ee565ef24d9f6 (patch) | |
tree | 961e0fb9a73d9476580ddf035cba493d13cae131 /tools | |
parent | c851a110a61f20c2163aacdf6afe210d572d777b (diff) | |
download | pexpect-git-1cdb7bcd1d7e6f78bb4cf145ae3ee565ef24d9f6.tar.gz |
use print_ from six.py for py2.5 compatibility
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testall.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testall.py b/tools/testall.py index 833abfa..53d6fa0 100755 --- a/tools/testall.py +++ b/tools/testall.py @@ -27,14 +27,14 @@ PEXPECT LICENSE OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ''' -from __future__ import print_function - import unittest import os, os.path import sys import platform import pexpect +from pexpect import six + print("Testing pexpect %s using python %s:" % ( pexpect.__version__, platform.python_version())) @@ -59,7 +59,7 @@ def find_modules_and_add_paths (root_path): for module_file in import_list: path, module = os.path.split(module_file) module_list.append (module) - print('Adding:', module_file) + six.print_('Adding:', module_file) if not path in sys.path: sys.path.append (path) if not os.path.dirname(path) in sys.path: |