Skip to content

Commit d830c4a

Browse files
authored
gh-106200: Remove unused imports (#106201)
1 parent 6c60684 commit d830c4a

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

Lib/poplib.py

-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ def stls(self, context=None):
451451
__all__.append("POP3_SSL")
452452

453453
if __name__ == "__main__":
454-
import sys
455454
a = POP3(sys.argv[1])
456455
print(a.getwelcome())
457456
a.user(sys.argv[2])

Lib/test/test_capi/test_misc.py

-2
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,6 @@ def test_configured_settings(self):
18231823
1-to-1 with the new interpreter's settings. This test verifies
18241824
that they match.
18251825
"""
1826-
import json
18271826

18281827
OBMALLOC = 1<<5
18291828
EXTENSIONS = 1<<8
@@ -1902,7 +1901,6 @@ def test_overridden_setting_extensions_subinterp_check(self):
19021901
This verifies that the override works but does not modify
19031902
the underlying setting.
19041903
"""
1905-
import json
19061904

19071905
OBMALLOC = 1<<5
19081906
EXTENSIONS = 1<<8

Lib/test/test_tokenize.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from textwrap import dedent
77
from unittest import TestCase, mock
88
from test import support
9-
from test.support import os_helper
109
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
1110
INVALID_UNDERSCORE_LITERALS)
1211
from test.support import os_helper

Tools/cases_generator/lexer.py

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# https://gist.github.com/markshannon/db7ab649440b5af765451bb77c7dba34
44

55
import re
6-
import sys
76
from dataclasses import dataclass
87

98
def choice(*opts):

0 commit comments

Comments
 (0)