Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00245cf

Browse files
committed
No need to import gmtime, ctime, asctime.
Make error an alias for ValueError. (Andrew Dalke & kjpylint)
1 parent 92b4451 commit 00245cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/calendar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# Revision 2: uses funtions from built-in time module
66

77
# Import functions and variables from time module
8-
from time import gmtime, localtime, mktime, asctime, ctime
8+
from time import localtime, mktime
99

1010
# Exception raised for bad input (with string parameter for details)
11-
error = 'calendar.error'
11+
error = ValueError
1212

1313
# Note when comparing these calendars to the ones printed by cal(1):
1414
# My calendars have Monday as the first day of the week, and Sunday as

0 commit comments

Comments
 (0)