Commit 0b7dd08d authored by Guido van Rossum's avatar Guido van Rossum

# Bah. The same problem occurred a second time.

parent 437cfe84
......@@ -116,7 +116,7 @@ def strftest(now):
if re.match(e[1], result):
if verbose:
print "Supports nonstandard '%s' format (%s)" % (e[0], e[2])
elif result[0] == '%':
elif not result or result[0] == '%':
if verbose:
print "Does not appear to support '%s' format (%s)" % (e[0],
e[2])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment