# Bah. The same problem occurred a second time.

This commit is contained in:
Guido van Rossum 1999-04-08 20:22:46 +00:00
parent 437cfe842f
commit 0b7dd08d50

View file

@ -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])