mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Sjoerd Mullender:
Bad % formatting.
This commit is contained in:
@@ -249,7 +249,7 @@ class ModuleFinder:
|
||||
elif type == imp.PY_COMPILED:
|
||||
if fp.read(4) != imp.get_magic():
|
||||
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)
|
||||
co = marshal.load(fp)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user