Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce33eb3

Browse files
committed
Sjoerd Mullender:
Bad % formatting.
1 parent 26af93c commit ce33eb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/freeze/modulefinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def load_module(self, fqname, fp, pathname, (suffix, mode, type)):
249249
elif type == imp.PY_COMPILED:
250250
if fp.read(4) != imp.get_magic():
251251
self.msgout(2, "raise ImportError: Bad magic number", pathname)
252-
raise ImportError, "Bad magic number in %s", pathname
252+
raise ImportError, "Bad magic number in %s" % pathname
253253
fp.read(4)
254254
co = marshal.load(fp)
255255
else:

0 commit comments

Comments
 (0)