Commits

Guido van Rossum  committed 3400aa1

# Bah. The same problem occurred a second time.

  • Participants
  • Parent commits 5e9ea3e
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_strftime.py

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