diff options
author | Guido van Rossum <guido@python.org> | 1997-10-06 20:19:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-06 20:19:59 (GMT) |
commit | a11ccccd249c201df0224c84bbaacdb31496aa5b (patch) | |
tree | d5a3ed51586cbe829775209fa49f469935332782 /Lib/dos-8x3/test_tim.py | |
parent | d57548023fa61918e545c0c808625df4f43e6ad4 (diff) | |
download | cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.zip cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.gz cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.bz2 |
The usual (and some new modules).
Diffstat (limited to 'Lib/dos-8x3/test_tim.py')
-rw-r--r-- | Lib/dos-8x3/test_tim.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/dos-8x3/test_tim.py b/Lib/dos-8x3/test_tim.py index 85ea6ee..acc4d41 100644 --- a/Lib/dos-8x3/test_tim.py +++ b/Lib/dos-8x3/test_tim.py @@ -16,8 +16,11 @@ tt = time.gmtime(t) for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I', 'j', 'm', 'M', 'p', 'S', 'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'): - format = '%' + directive - time.strftime(format, tt) + format = ' %' + directive + try: + time.strftime(format, tt) + except ValueError: + print 'conversion specifier:', format, ' failed.' time.timezone time.tzname |