From 09cc756320842cc85dd5eb247bad49cb646db9e5 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 22 Jan 2024 16:03:56 -0500 Subject: [PATCH] Remove useless shebangs These files do not have the executable bit set in their filesystem permissions (so the shebang line, `#!`, is useless), and they are not script-like (do not have `if __name__ == "__main__"` or interesting side-effects), so making them executable would not make sense. --- .../django/middleware/sqlcommenter_middleware.py | 2 -- .../instrumentation/auto_instrumentation/__init__.py | 2 -- .../src/opentelemetry/instrumentation/bootstrap.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/sqlcommenter_middleware.py b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/sqlcommenter_middleware.py index 89d8a9b776..30492a8be5 100644 --- a/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/sqlcommenter_middleware.py +++ b/instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/sqlcommenter_middleware.py @@ -1,5 +1,3 @@ -#!/usr/bin/python -# # Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py index 5758ef1834..a09334432d 100644 --- a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py +++ b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - # Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap.py b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap.py index afd5a045d9..0c8f0aa3c4 100644 --- a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap.py +++ b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - # Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License");