summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Hrnciar <thrnciar@redhat.com>2021-08-23 12:16:07 +0200
committerTomas Hrnciar <thrnciar@redhat.com>2021-08-23 12:16:07 +0200
commit52519acb8579e609726fda9a4a284ef7c7f53dc9 (patch)
treef3fa8d0f73740785b31a41c058ebace751a1c2c7
parentcabb008b027bce9d9fa7fac97390ba2b4fb3f57f (diff)
downloadjsonschema-52519acb8579e609726fda9a4a284ef7c7f53dc9.tar.gz
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.
-rw-r--r--jsonschema/benchmarks/issue232.py1
-rw-r--r--jsonschema/benchmarks/json_schema_test_suite.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/jsonschema/benchmarks/issue232.py b/jsonschema/benchmarks/issue232.py
index e08dff9..779f522 100644
--- a/jsonschema/benchmarks/issue232.py
+++ b/jsonschema/benchmarks/issue232.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
A performance benchmark using the example from issue #232.
diff --git a/jsonschema/benchmarks/json_schema_test_suite.py b/jsonschema/benchmarks/json_schema_test_suite.py
index 4126fdc..905fb6a 100644
--- a/jsonschema/benchmarks/json_schema_test_suite.py
+++ b/jsonschema/benchmarks/json_schema_test_suite.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
"""
A performance benchmark using the official test suite.