diff options
author | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-07-17 20:59:35 (GMT) |
commit | 6f2df4d5e193d54244b0c2de91ef0ab1604b9243 (patch) | |
tree | 5e172400da7561eb4bb8fafc62c8cab511d74dad /Demo/imputil/importers.py | |
parent | a8c360ee76fb76902a2e2140fbb38d4b06b2d9fb (diff) | |
download | cpython-6f2df4d5e193d54244b0c2de91ef0ab1604b9243.zip cpython-6f2df4d5e193d54244b0c2de91ef0ab1604b9243.tar.gz cpython-6f2df4d5e193d54244b0c2de91ef0ab1604b9243.tar.bz2 |
Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements.
Diffstat (limited to 'Demo/imputil/importers.py')
-rw-r--r-- | Demo/imputil/importers.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/imputil/importers.py b/Demo/imputil/importers.py index 864ff02..b617ba0 100644 --- a/Demo/imputil/importers.py +++ b/Demo/imputil/importers.py @@ -31,7 +31,7 @@ _suffix_char = __debug__ and 'c' or 'o' _suffix = '.py' + _suffix_char # the C_EXTENSION suffixes -_c_suffixes = filter(lambda x: x[2] == imp.C_EXTENSION, imp.get_suffixes()) +_c_suffixes = [x for x in imp.get_suffixes() if x[2] == imp.C_EXTENSION] def _timestamp(pathname): "Return the file modification time as a Long." @@ -39,7 +39,7 @@ def _timestamp(pathname): s = os.stat(pathname) except OSError: return None - return long(s[8]) + return int(s[8]) def _fs_import(dir, modname, fqname): "Fetch a module from the filesystem." @@ -149,7 +149,7 @@ class PackageArchiveImporter(imputil.Importer): Return None if the archive was not found. """ - raise RuntimeError, "get_archive not implemented" + raise RuntimeError("get_archive not implemented") def get_subfile(self, archive, modname): """Get code from a subfile in the specified archive. @@ -162,7 +162,7 @@ class PackageArchiveImporter(imputil.Importer): Return None if the subfile was not found. """ - raise RuntimeError, "get_subfile not implemented" + raise RuntimeError("get_subfile not implemented") class PackageArchive(PackageArchiveImporter): |