diff options
author | Guido van Rossum <guido@python.org> | 1999-05-03 18:07:40 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-05-03 18:07:40 +0000 |
commit | 871235ccc2bffea7bc357f7084e13539171dd522 (patch) | |
tree | 13e53b4eb0940104d4798f6dbed080242769584d | |
parent | 5923a642e17835a33931c8f5278b2916f9582b56 (diff) | |
download | cpython-871235ccc2bffea7bc357f7084e13539171dd522.tar.gz |
No need to import gmtime, ctime, asctime.
Make error an alias for ValueError.
(Andrew Dalke & kjpylint)
-rw-r--r-- | Lib/calendar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py index e9b16447fa..8d5681a018 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -5,10 +5,10 @@ # Revision 2: uses funtions from built-in time module # Import functions and variables from time module -from time import gmtime, localtime, mktime, asctime, ctime +from time import localtime, mktime # Exception raised for bad input (with string parameter for details) -error = 'calendar.error' +error = ValueError # Note when comparing these calendars to the ones printed by cal(1): # My calendars have Monday as the first day of the week, and Sunday as |