summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/abc.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-02-25 05:48:17 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2012-02-25 05:48:17 (GMT)
commit4b42ff609ddb1c7d096b28e51196ccb394c03a13 (patch)
tree3941a593a766d8fc9800b900f4037e607890879c /Lib/importlib/abc.py
parent6f73874edd30afaa9580f63d3ba0f1ea9c4b09b7 (diff)
downloadcpython-4b42ff609ddb1c7d096b28e51196ccb394c03a13.zip
cpython-4b42ff609ddb1c7d096b28e51196ccb394c03a13.tar.gz
cpython-4b42ff609ddb1c7d096b28e51196ccb394c03a13.tar.bz2
unused imports, pep8
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r--Lib/importlib/abc.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index c4b7187..22a7c1a 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -1,15 +1,11 @@
"""Abstract base classes related to import."""
from . import _bootstrap
from . import machinery
-from . import util
import abc
import imp
-import io
import marshal
-import os.path
import sys
import tokenize
-import types
import warnings
@@ -256,7 +252,8 @@ class PyPycLoader(PyLoader):
try:
magic = data[:4]
if len(magic) < 4:
- raise ImportError("bad magic number in {}".format(fullname))
+ raise ImportError(
+ "bad magic number in {}".format(fullname))
raw_timestamp = data[4:8]
if len(raw_timestamp) < 4:
raise EOFError("bad timestamp in {}".format(fullname))
@@ -264,7 +261,8 @@ class PyPycLoader(PyLoader):
bytecode = data[8:]
# Verify that the magic number is valid.
if imp.get_magic() != magic:
- raise ImportError("bad magic number in {}".format(fullname))
+ raise ImportError(
+ "bad magic number in {}".format(fullname))
# Verify that the bytecode is not stale (only matters when
# there is source to fall back on.
if source_timestamp: