]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
# Bah. The same problem occurred a second time.
authorGuido van Rossum <guido@python.org>
Thu, 8 Apr 1999 20:22:46 +0000 (20:22 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Apr 1999 20:22:46 +0000 (20:22 +0000)
Lib/test/test_strftime.py

index 1ccb84ba7c5dfcde7ce3cabb3d873239d43c582d..c713d05cc0c699b908fb035f7e073fab002c201a 100755 (executable)
@@ -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])