You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by rr...@apache.org on 2020/05/04 14:56:01 UTC
[trafficserver] 04/04: python: Remove unused imports
This is an automated email from the ASF dual-hosted git repository.
rrm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 005b04bfbaa0381ccf214e4f781f6bf402426de0
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Fri May 1 19:39:27 2020 +0000
python: Remove unused imports
Co-authored-by: deepsource-autofix[bot] <62...@users.noreply.github.com>
---
doc/checkvers.py | 1 -
doc/conf.py | 2 --
doc/manpages.py | 1 -
tests/gold_tests/chunked_encoding/chunked_encoding_h2.test.py | 1 -
tests/gold_tests/headers/forwarded.test.py | 1 -
.../pluginTest/cache_range_requests/cache_range_requests.test.py | 2 --
.../cache_range_requests/cache_range_requests_cachekey.test.py | 3 ---
.../pluginTest/cache_range_requests/cache_range_requests_ims.test.py | 1 -
tests/gold_tests/pluginTest/lua/lua_states_stats.test.py | 1 -
tests/gold_tests/pluginTest/lua/lua_watermark.test.py | 1 -
tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py | 2 --
tests/gold_tests/tls/tls_verify_override_sni.test.py | 1 -
12 files changed, 17 deletions(-)
diff --git a/doc/checkvers.py b/doc/checkvers.py
index cf1f841..30d61cd 100644
--- a/doc/checkvers.py
+++ b/doc/checkvers.py
@@ -15,7 +15,6 @@
# limitations under the License.
import sys
-import os
if __name__ == '__main__':
# Use optparse instead of argparse because this needs to work on old Python versions.
diff --git a/doc/conf.py b/doc/conf.py
index f1f5112..e9842fb 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -38,8 +38,6 @@ from sphinx import version_info
sys.path.insert(0, os.path.abspath('ext'))
sys.path.insert(0, os.path.abspath('.'))
-from manpages import man_pages
-
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be extensions
diff --git a/doc/manpages.py b/doc/manpages.py
index 0e38f10..9e6cc44 100644
--- a/doc/manpages.py
+++ b/doc/manpages.py
@@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import sys
import os
man_pages = [
diff --git a/tests/gold_tests/chunked_encoding/chunked_encoding_h2.test.py b/tests/gold_tests/chunked_encoding/chunked_encoding_h2.test.py
index d5022c0..96af641 100644
--- a/tests/gold_tests/chunked_encoding/chunked_encoding_h2.test.py
+++ b/tests/gold_tests/chunked_encoding/chunked_encoding_h2.test.py
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
Test.Summary = '''
Test interaction of H2 and chunked encoding
'''
diff --git a/tests/gold_tests/headers/forwarded.test.py b/tests/gold_tests/headers/forwarded.test.py
index 87ceeda..d2d0347 100644
--- a/tests/gold_tests/headers/forwarded.test.py
+++ b/tests/gold_tests/headers/forwarded.test.py
@@ -18,7 +18,6 @@ Test the Forwarded header and related configuration..
# limitations under the License.
import os
-import ports
Test.Summary = '''
Test FORWARDED header.
diff --git a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests.test.py b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests.test.py
index 5806f14..9b0f487 100644
--- a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests.test.py
+++ b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests.test.py
@@ -16,8 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
-
Test.Summary = '''
Basic cache_range_requests plugin test
'''
diff --git a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_cachekey.test.py b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_cachekey.test.py
index 2622694..bee7363 100644
--- a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_cachekey.test.py
+++ b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_cachekey.test.py
@@ -16,9 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
-import time
-
Test.Summary = '''
cache_range_requests with cachekey
'''
diff --git a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_ims.test.py b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_ims.test.py
index 3c9c281..3d019db 100644
--- a/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_ims.test.py
+++ b/tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_ims.test.py
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
import time
Test.Summary = '''
diff --git a/tests/gold_tests/pluginTest/lua/lua_states_stats.test.py b/tests/gold_tests/pluginTest/lua/lua_states_stats.test.py
index af1a91a..126d026 100644
--- a/tests/gold_tests/pluginTest/lua/lua_states_stats.test.py
+++ b/tests/gold_tests/pluginTest/lua/lua_states_stats.test.py
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
Test.Summary = '''
Test lua states and stats functionality
'''
diff --git a/tests/gold_tests/pluginTest/lua/lua_watermark.test.py b/tests/gold_tests/pluginTest/lua/lua_watermark.test.py
index a97678c..c3565a1 100644
--- a/tests/gold_tests/pluginTest/lua/lua_watermark.test.py
+++ b/tests/gold_tests/pluginTest/lua/lua_watermark.test.py
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
Test.Summary = '''
Test lua functionality
'''
diff --git a/tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py b/tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py
index bdb4686..010a8f1 100644
--- a/tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py
+++ b/tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py
@@ -16,8 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
-import subprocess
Test.Summary = '''
Test uri_signing plugin
'''
diff --git a/tests/gold_tests/tls/tls_verify_override_sni.test.py b/tests/gold_tests/tls/tls_verify_override_sni.test.py
index 38ceeb3..93ccc41 100644
--- a/tests/gold_tests/tls/tls_verify_override_sni.test.py
+++ b/tests/gold_tests/tls/tls_verify_override_sni.test.py
@@ -16,7 +16,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os
Test.Summary = '''
Test tls server certificate verification options. Exercise conf_remap
'''