back to initial approach

This commit is contained in:
Casper da Costa-Luis
2019-09-29 17:54:04 +01:00
parent 83f55de7a9
commit 5f65e8096e
+3 -1
View File
@@ -19,7 +19,9 @@ is_py3 = _ver[0] == 3
DEFAULT_ENCODING = sys.getdefaultencoding()
# https://docs.python.org/3/library/exceptions.html#RecursionError
if _ver[:2] < (3, 5):
try:
RecursionError
except NameError: # _ver[:2] < (3, 5)
RecursionError = RuntimeError