mirror of https://github.com/python/cpython.git
gh-106200: Remove unused imports (#106201)
This commit is contained in:
parent
6c60684bf5
commit
d830c4a944
|
@ -451,7 +451,6 @@ def stls(self, context=None):
|
||||||
__all__.append("POP3_SSL")
|
__all__.append("POP3_SSL")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
|
||||||
a = POP3(sys.argv[1])
|
a = POP3(sys.argv[1])
|
||||||
print(a.getwelcome())
|
print(a.getwelcome())
|
||||||
a.user(sys.argv[2])
|
a.user(sys.argv[2])
|
||||||
|
|
|
@ -1823,7 +1823,6 @@ def test_configured_settings(self):
|
||||||
1-to-1 with the new interpreter's settings. This test verifies
|
1-to-1 with the new interpreter's settings. This test verifies
|
||||||
that they match.
|
that they match.
|
||||||
"""
|
"""
|
||||||
import json
|
|
||||||
|
|
||||||
OBMALLOC = 1<<5
|
OBMALLOC = 1<<5
|
||||||
EXTENSIONS = 1<<8
|
EXTENSIONS = 1<<8
|
||||||
|
@ -1902,7 +1901,6 @@ def test_overridden_setting_extensions_subinterp_check(self):
|
||||||
This verifies that the override works but does not modify
|
This verifies that the override works but does not modify
|
||||||
the underlying setting.
|
the underlying setting.
|
||||||
"""
|
"""
|
||||||
import json
|
|
||||||
|
|
||||||
OBMALLOC = 1<<5
|
OBMALLOC = 1<<5
|
||||||
EXTENSIONS = 1<<8
|
EXTENSIONS = 1<<8
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
from unittest import TestCase, mock
|
from unittest import TestCase, mock
|
||||||
from test import support
|
from test import support
|
||||||
from test.support import os_helper
|
|
||||||
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
|
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
|
||||||
INVALID_UNDERSCORE_LITERALS)
|
INVALID_UNDERSCORE_LITERALS)
|
||||||
from test.support import os_helper
|
from test.support import os_helper
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
# https://gist.github.com/markshannon/db7ab649440b5af765451bb77c7dba34
|
# https://gist.github.com/markshannon/db7ab649440b5af765451bb77c7dba34
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
def choice(*opts):
|
def choice(*opts):
|
||||||
|
|
Loading…
Reference in New Issue