From ce33eb3ee8655f3e403bcae20ffe3aeb924ff40a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 2 May 2000 13:49:13 +0000 Subject: [PATCH] Sjoerd Mullender: Bad % formatting. --- Tools/freeze/modulefinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/freeze/modulefinder.py b/Tools/freeze/modulefinder.py index ddead2221f9..7260614f5b9 100644 --- a/Tools/freeze/modulefinder.py +++ b/Tools/freeze/modulefinder.py @@ -249,7 +249,7 @@ def load_module(self, fqname, fp, pathname, (suffix, mode, type)): 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: