tests/testmods/scanning/scoped_if_else.py
raw| 1 | import sys |
| 2 | |
| 3 | |
| 4 | if True: |
| 5 | import in_if_always_true |
| 6 | from in_if_always_true import x as y, z |
| 7 | else: |
| 8 | import in_else_never_true |
| 9 | from in_else_never_true import x as y, z |
| 10 | |
| 11 | if sys.version >= (3, 0): |
| 12 | import in_if_py3 |
| 13 | from in_if_py3 import x as y, z |
| 14 | else: |
| 15 | import in_else_py2 |
| 16 | from in_else_py2 import x as y, z |