Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e8ee9b

Browse files
committed
Issue #23277: Remove unused sys and os imports
Patch by Jon Dufresne.
1 parent 3791736 commit 1e8ee9b

45 files changed

Lines changed: 6 additions & 48 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Lib/ctypes/test/test_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
'''
5656

57-
import unittest, doctest, sys
57+
import unittest, doctest
5858

5959
import ctypes.test.test_objects
6060

Lib/ctypes/test/test_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import unittest, sys
1+
import unittest
22
from ctypes.test import need_symbol
33

44
class SimpleTypesTestCase(unittest.TestCase):

Lib/ctypes/test/test_returnfuncptrs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import unittest
22
from ctypes import *
3-
import os
43

54
import _ctypes_test
65

Lib/ctypes/test/test_sizes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from ctypes import *
44

5-
import sys
65
import unittest
76

87

Lib/test/audiotests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import array
44
import io
55
import pickle
6-
import sys
6+
77

88
class UnseekableIO(io.FileIO):
99
def tell(self):

Lib/test/make_ssl_certs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import os
55
import shutil
6-
import sys
76
import tempfile
87
from subprocess import *
98

Lib/test/test_aifc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import unittest
33
from test import audiotests
44
from audioop import byteswap
5-
import os
65
import io
76
import sys
87
import struct

Lib/test/test_binhex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Based on an original test by Roger E. Masse.
55
"""
66
import binhex
7-
import os
87
import unittest
98
from test import support
109

Lib/test/test_csv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import copy
55
import io
66
import sys
7-
import os
87
import unittest
98
from io import StringIO
109
from tempfile import TemporaryFile

Lib/test/test_dbm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Test script for the dbm.open function based on testdumbdbm.py"""
22

3-
import os
43
import unittest
54
import glob
65
import test.support

0 commit comments

Comments
 (0)