Skip to content

Commit e9e05b5

Browse files
authored
Merge pull request swiftlang#32858 from compnerd/curved-lines
validation: make `line-directive` python 3.5 friendly
2 parents 802754d + 37443a0 commit e9e05b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/line-directive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _make_line_map(target_filename, stream=None):
6363
"""
6464
>>> try:
6565
... from StringIO import StringIO # py2
66-
... except ModuleNotFoundError:
66+
... except ImportError:
6767
... from io import StringIO # py3
6868
>>> _make_line_map('box',
6969
... StringIO('''// ###sourceLocation(file: "foo.bar", line: 3)

0 commit comments

Comments
 (0)