summaryrefslogtreecommitdiffstats
path: root/Lib/calendar.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-05-03 18:07:40 (GMT)
committerGuido van Rossum <guido@python.org>1999-05-03 18:07:40 (GMT)
commit00245cfbaa995ef54fcb4d8ecef97cba6f9307fe (patch)
tree7d2796b532d76292baf79571039fff7e286be3b9 /Lib/calendar.py
parent92b44517cb8ef58ed02be9784bb329341589dd4d (diff)
downloadcpython-00245cfbaa995ef54fcb4d8ecef97cba6f9307fe.zip
cpython-00245cfbaa995ef54fcb4d8ecef97cba6f9307fe.tar.gz
cpython-00245cfbaa995ef54fcb4d8ecef97cba6f9307fe.tar.bz2
No need to import gmtime, ctime, asctime.
Make error an alias for ValueError. (Andrew Dalke & kjpylint)
Diffstat (limited to 'Lib/calendar.py')
-rw-r--r--Lib/calendar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index e9b1644..8d5681a 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