Skip to content

Commit 4650dbf

Browse files
authored
Remove shebang from nonexecutable script (#192)
When packaging chardet and pip (which bundles it) in Fedora, we have realized that there is a nonexecuatble file with a shebang line. It seems that the primary purpose of this file is to be imported from Python code or to be executed via python chardet/cli/chardetect.py or python -m chardet.cli.chardetect and hence the shebang appears to be unnecessary. Shebangs are hard to handle when doing downstream packaging, because it makes sense for upstream to use #!/usr/bin/env python while in the RPM package, we need to avoid that and use a more specific interpreter. Since the shebang was unused, I propose to remove it to avoid the problems.
1 parent 5b1d7d5 commit 4650dbf

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

chardet/cli/chardetect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
"""
32
Script which takes one or more file paths and reports on their detected
43
encodings

0 commit comments

Comments
 (0)