summaryrefslogtreecommitdiffstats
path: root/Lib/pyclbr.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-24 21:12:32 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-24 21:12:32 (GMT)
commitccd047ea4b92f09a84b67e69deb82ce42e510c4c (patch)
tree89663a3917f136919b9b491c22ee76c16afd0b83 /Lib/pyclbr.py
parenta6f26c1d3495670c02c2ceb1e38ada0d468579f7 (diff)
downloadcpython-ccd047ea4b92f09a84b67e69deb82ce42e510c4c.zip
cpython-ccd047ea4b92f09a84b67e69deb82ce42e510c4c.tar.gz
cpython-ccd047ea4b92f09a84b67e69deb82ce42e510c4c.tar.bz2
Removed unused imports.
Diffstat (limited to 'Lib/pyclbr.py')
-rw-r--r--Lib/pyclbr.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index 4d40b87..d7dba97 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -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)]