Skip to content

Commit c124158

Browse files
committed
Use ImportError rather than ModuleNotFoundError
1 parent 0577e85 commit c124158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fluent/syntax/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
try:
88
from __builtin__ import unichr as chr
9-
except ModuleNotFoundError:
9+
except ImportError:
1010
pass
1111

1212

13+
1314
def with_span(fn):
1415
def decorated(self, ps, *args, **kwargs):
1516
if not self.with_spans:

0 commit comments

Comments
 (0)