Skip to content

Commit 52519ac

Browse files
committed
Remove shebangs from nonexecutable scripts
When packaging jsonschema and poetry-core (which bundles it) in Fedora, we have realised that there are nonexecutable files with a shebang line. It seems that the primary purpose of these files is to be imported from Python code and hence the shebangs appear 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 shebangs were unused, I propose to remove them to avoid problems.
1 parent cabb008 commit 52519ac

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

jsonschema/benchmarks/issue232.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
A performance benchmark using the example from issue #232.
43

jsonschema/benchmarks/json_schema_test_suite.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
A performance benchmark using the official test suite.
43

0 commit comments

Comments
 (0)