Commit 871235cc authored by Guido van Rossum's avatar Guido van Rossum

No need to import gmtime, ctime, asctime.

Make error an alias for ValueError.
(Andrew Dalke & kjpylint)
parent 5923a642
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
# Revision 2: uses funtions from built-in time module # Revision 2: uses funtions from built-in time module
# Import functions and variables from 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) # 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): # 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 # My calendars have Monday as the first day of the week, and Sunday as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment