We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b888c9 commit cce59d7Copy full SHA for cce59d7
pre_commit/parse_shebang.py
@@ -6,8 +6,6 @@
6
import shlex
7
import string
8
9
-from pre_commit import five
10
-
11
12
printable = frozenset(string.printable)
13
@@ -31,8 +29,7 @@ def parse_bytesio(bytesio):
31
29
if c not in printable:
32
30
return ()
33
34
- # shlex.split is horribly broken in py26 on text strings
35
- cmd = tuple(shlex.split(five.n(first_line)))
+ cmd = tuple(shlex.split(first_line))
36
if cmd[0] == '/usr/bin/env':
37
cmd = cmd[1:]
38
return cmd
0 commit comments