]> granicus.if.org Git - python/commitdiff
No need to import gmtime, ctime, asctime.
authorGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:07:40 +0000 (18:07 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 May 1999 18:07:40 +0000 (18:07 +0000)
Make error an alias for ValueError.
(Andrew Dalke & kjpylint)

Lib/calendar.py

index e9b16447fa4d804ddf9ee1f7ad0233ec4a97bf76..8d5681a01856e5f4f5c58db428184df4b0d571c7 100644 (file)
@@ -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