diff options
Diffstat (limited to 'Lib/test/test_print.py')
| -rw-r--r-- | Lib/test/test_print.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_print.py b/Lib/test/test_print.py index 0c46f9b..5ed2cc0 100644 --- a/Lib/test/test_print.py +++ b/Lib/test/test_print.py @@ -9,10 +9,10 @@ import unittest from test import test_support import sys -try: +if sys.version_info[0] == 3: # 3.x from io import StringIO -except ImportError: +else: # 2.x from StringIO import StringIO |
