mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Sjoerd Mullender:
Bad % formatting.
This commit is contained in:
parent
26af93cf35
commit
ce33eb3ee8
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue