[llvm-commits] [zorg] r105562 - /zorg/trunk/lnt/lnt/formats/__init__.py
Daniel Dunbar
daniel at zuster.org
Mon Jun 7 16:00:12 PDT 2010
Author: ddunbar
Date: Mon Jun 7 18:00:11 2010
New Revision: 105562
URL: http://llvm.org/viewvc/llvm-project?rev=105562&view=rev
Log:
lnt checkformat: Fix a typo on an error path.
Modified:
zorg/trunk/lnt/lnt/formats/__init__.py
Modified: zorg/trunk/lnt/lnt/formats/__init__.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/formats/__init__.py?rev=105562&r1=105561&r2=105562&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/formats/__init__.py (original)
+++ zorg/trunk/lnt/lnt/formats/__init__.py Mon Jun 7 18:00:11 2010
@@ -24,7 +24,7 @@
"""
return formats_by_name.get(name)
-
+
def guess_format(path_or_file):
"""guess_format(path_or_file) -> [format]
@@ -71,7 +71,8 @@
f = guess_format(path_or_file)
if f is None:
if isinstance(path_or_file, str):
- raise SystemExit("unable to guess input format for %r" % input)
+ raise SystemExit("unable to guess input format for %r" % (
+ path_or_file,))
else:
raise SystemExit("unable to guess input format for file")
else:
More information about the llvm-commits
mailing list