mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
# Bah. The same problem occurred a second time.
This commit is contained in:
parent
437cfe842f
commit
0b7dd08d50
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue