mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
No need to import gmtime, ctime, asctime.
Make error an alias for ValueError. (Andrew Dalke & kjpylint)
This commit is contained in:
parent
92b44517cb
commit
00245cfbaa
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue