diff options
Diffstat (limited to 'subcmds/status.py')
| -rw-r--r-- | subcmds/status.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 9810337f..41c4429a 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
| @@ -21,12 +21,13 @@ except ImportError: | |||
| 21 | import dummy_threading as _threading | 21 | import dummy_threading as _threading |
| 22 | 22 | ||
| 23 | import glob | 23 | import glob |
| 24 | try: | 24 | |
| 25 | # For python2 | 25 | from pyversion import is_python3 |
| 26 | import StringIO as io | 26 | if is_python3(): |
| 27 | except ImportError: | ||
| 28 | # For python3 | ||
| 29 | import io | 27 | import io |
| 28 | else: | ||
| 29 | import StringIO as io | ||
| 30 | |||
| 30 | import itertools | 31 | import itertools |
| 31 | import os | 32 | import os |
| 32 | import sys | 33 | import sys |
