Skip to content

Commit c4d76fd

Browse files
author
Dave Abrahams
authored
Satisfy the python linter
1 parent 4433a9f commit c4d76fd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

utils/line-directive

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
#
1212
# ----------------------------------------------------------------------------
1313
from __future__ import print_function
14+
import bisect
15+
import os
16+
import re
17+
import shlex
18+
import subprocess
19+
import sys
1420

1521
usage = '''"#sourceLocation" is a directive used by tools like the Swift
1622
compiler and debugger to adjust the lines reported in diagnostics and to
@@ -48,13 +54,6 @@ You do this:
4854
line-directive foo.swift bar.swift -- swiftc foo.swift bar.swift baz.swift
4955
'''
5056

51-
import bisect
52-
import os
53-
import re
54-
import shlex
55-
import subprocess
56-
import sys
57-
5857
line_pattern = re.compile(
5958
r'^// ###sourceLocation\(file:\s*"([^"]+)",\s*line:\s*([0-9]+)\s*\)')
6059

0 commit comments

Comments
 (0)