File: scoped_try_except.py

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (9 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
try:
    import in_try
    from in_try import x as y, z
except ImportError:
    import in_except_importerror
    from in_except_importerror import x as y, z
except Exception:
    import in_except_exception
    from in_except_exception import x as y, z