Commit 2c614077 authored by Guido van Rossum's avatar Guido van Rossum

Sjoerd Mullender:

Bad % formatting.
parent 12ac719f
...@@ -249,7 +249,7 @@ class ModuleFinder: ...@@ -249,7 +249,7 @@ class ModuleFinder:
elif type == imp.PY_COMPILED: elif type == imp.PY_COMPILED:
if fp.read(4) != imp.get_magic(): if fp.read(4) != imp.get_magic():
self.msgout(2, "raise ImportError: Bad magic number", pathname) self.msgout(2, "raise ImportError: Bad magic number", pathname)
raise ImportError, "Bad magic number in %s", pathname raise ImportError, "Bad magic number in %s" % pathname
fp.read(4) fp.read(4)
co = marshal.load(fp) co = marshal.load(fp)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment