From 0e0d0985d04a4ccb6f8e8862373eaffe6d1e289d Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 24 Jul 2014 16:22:11 -0400 Subject: Various pep8 fixes and cleanups Re #36 --- runtests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runtests.py') diff --git a/runtests.py b/runtests.py index 6b93a4a..56893b3 100755 --- a/runtests.py +++ b/runtests.py @@ -2910,12 +2910,13 @@ import sys import base64 import zlib + class DictImporter(object): def __init__(self, sources): self.sources = sources def find_module(self, fullname, path=None): - if fullname == "argparse" and sys.version_info >= (2,7): + if fullname == "argparse" and sys.version_info >= (2, 7): # we were generated with = (3, 0): exec("def do_exec(co, loc): exec(co, loc)\n") import pickle - sources = sources.encode("ascii") # ensure bytes + sources = sources.encode("ascii") # ensure bytes sources = pickle.loads(zlib.decompress(base64.decodebytes(sources))) else: import cPickle as pickle @@ -2966,4 +2967,4 @@ if __name__ == "__main__": sys.meta_path.insert(0, importer) entry = "import pytest; raise SystemExit(pytest.cmdline.main())" - do_exec(entry, locals()) # noqa + do_exec(entry, locals()) # noqa -- cgit v1.2.3