File: scoped_if_else.py

package info (click to toggle)
python-mitogen 0.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,728 kB
  • sloc: python: 24,644; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (16 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys


if True:
    import in_if_always_true
    from in_if_always_true import x as y, z
else:
    import in_else_never_true
    from in_else_never_true import x as y, z

if sys.version >= (3, 0):
    import in_if_py3
    from in_if_py3 import x as y, z
else:
    import in_else_py2
    from in_else_py2 import x as y, z