We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903dcbe commit 5ecc50eCopy full SHA for 5ecc50e
easybuild/tools/py2vs3/py2.py
@@ -57,9 +57,12 @@ def subprocess_popen_text(cmd, **kwargs):
57
return subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
58
59
60
+# Wrapped in exec to avoid invalid syntax warnings for Python 3
61
+exec('''
62
def raise_with_traceback(exception_class, message, traceback):
63
"""Raise exception of specified class with given message and traceback."""
64
raise exception_class, message, traceback # noqa: E999
65
+''')
66
67
68
def extract_method_name(method_func):
0 commit comments