mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Removed unused imports.
This commit is contained in:
parent
a6f26c1d34
commit
ccd047ea4b
26 changed files with 11 additions and 31 deletions
|
@ -40,12 +40,10 @@ Instances of this class have the following instance variables:
|
|||
"""
|
||||
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
import importlib.util
|
||||
import tokenize
|
||||
from token import NAME, DEDENT, OP
|
||||
from operator import itemgetter
|
||||
|
||||
__all__ = ["readmodule", "readmodule_ex", "Class", "Function"]
|
||||
|
||||
|
@ -328,6 +326,7 @@ def _getname(g):
|
|||
def _main():
|
||||
# Main program for testing.
|
||||
import os
|
||||
from operator import itemgetter
|
||||
mod = sys.argv[1]
|
||||
if os.path.exists(mod):
|
||||
path = [os.path.dirname(mod)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue