17 lines
389 B
Python
17 lines
389 B
Python
# Copyright 2020 the authors.
|
|
# This file is part of Hy, which is free software licensed under the Expat
|
|
# license. See the LICENSE.
|
|
|
|
import sys
|
|
|
|
PY36 = sys.version_info >= (3, 6)
|
|
PY37 = sys.version_info >= (3, 7)
|
|
PY38 = sys.version_info >= (3, 8)
|
|
|
|
|
|
def reraise(exc_type, value, traceback=None):
|
|
try:
|
|
raise value.with_traceback(traceback)
|
|
finally:
|
|
traceback = None
|