]> granicus.if.org Git - python/commitdiff
Sjoerd Mullender:
authorGuido van Rossum <guido@python.org>
Tue, 2 May 2000 13:49:13 +0000 (13:49 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 2 May 2000 13:49:13 +0000 (13:49 +0000)
Bad % formatting.

Tools/freeze/modulefinder.py

index ddead2221f9fea5f4420e51bf91d9a5a2231679b..7260614f5b938693a60c9dc250adadd169ab05c2 100644 (file)
@@ -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: