Skip to content

Commit c9e7afb

Browse files
authored
Merge pull request #27076 from slavapestov/python-lint-fix
Fix python-lint complaints
2 parents 81e7fb4 + 5f03ef5 commit c9e7afb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Inputs/symlink.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
2+
import os
23
import subprocess
34
import sys
4-
import os
55

66
if len(sys.argv) < 3:
77
print('Too few args to ' + sys.argv[0])
@@ -22,6 +22,8 @@
2222
is_dir = os.path.isdir(sys.argv[1])
2323

2424
# Windows symlink support was introduced in python 3.2
25-
subprocess.check_call(['cmd.exe', '/C', 'mklink ' + ('/D' if is_dir else ''), link_path, points_to])
25+
subprocess.check_call(['cmd.exe', '/C',
26+
'mklink ' + ('/D' if is_dir else ''),
27+
link_path, points_to])
2628
else:
2729
os.symlink(points_to, link_path)

0 commit comments

Comments
 (0)