Serhiy Storchaka
9a118f1dc3
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 09:37:36 +03:00
Ezio Melotti
f5469cff1f
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:43:51 +03:00
Serhiy Storchaka
8d510cd6e1
Issue #17049 : Localized calendar methods now return unicode if a locale
...
includes an encoding and the result string contains month or weekday (was
regression from Python 2.6).
2013-01-31 15:57:51 +02:00
Ezio Melotti
cadff70ba5
#15421 : fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
2012-09-21 17:26:35 +03:00
Georg Brandl
79f096a7aa
Merged revisions 85728 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85728 | georg.brandl | 2010-10-19 20:54:25 +0200 (Di, 19 Okt 2010) | 1 line
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
........
2010-11-26 07:57:57 +00:00
Alexander Belopolsky
7802522531
Merged revisions 85725 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85725 | alexander.belopolsky | 2010-10-19 13:43:50 -0400 (Tue, 19 Oct 2010) | 3 lines
Fixed the docstring for calendar.isleap() function.
Thanks Boštjan Mejak for the patch.
........
2010-10-19 17:52:22 +00:00
Florent Xicluna
1f3b4e12e8
Fix some py3k warnings in the standard library.
2010-03-07 12:14:25 +00:00
Benjamin Peterson
95287fa951
Remove some from __future__ import with_statements
2008-04-30 21:25:55 +00:00
Walter Dörwald
d0e5b766f1
Fix typo in docstring for Calendar.itermonthdays().
2008-02-07 19:57:32 +00:00
Walter Dörwald
edc526c161
Fix TextCalendar.prweek(). This closes issue #1427 .
2007-11-12 10:01:33 +00:00
Christian Heimes
ced1646b9e
Fix for #1427 : Error in standard module calendar
...
the prweek() method is still broken and I can't figure out how it suppose to work.
2007-11-12 01:20:56 +00:00
Walter Dörwald
f0d1c1f3ec
Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
...
HTMLCalender.formatyearpage() (there's no themonth parameter).
This fixes issue1046.
2007-08-28 16:38:26 +00:00
Raymond Hettinger
72ef8daa88
calendar.py gets no benefit from xrange() instead of range()
2007-05-17 01:08:04 +00:00
Guido van Rossum
da5b701aee
Get rid of __context__, per the latest changes to PEP 343 and python-dev
...
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
2006-05-02 19:47:52 +00:00
Walter Dörwald
bc96609555
Patch #1463288 : use a context manager to temporarily switch locales.
...
Add tests for the output of the TextCalendar and HTMLCalendar classes.
2006-04-12 10:09:16 +00:00
Anthony Baxter
7846f4d365
missing 'self' from TextCalendar.prweek.
2006-04-07 05:41:13 +00:00
Walter Dörwald
2a1b4a69b7
For backwards compatibility reasons the global function
...
setfirstweekday() still needs to do a range check.
2006-04-03 15:24:49 +00:00
Walter Dörwald
72d84af401
Always return firstweekday % 7 instead of complaining
...
on setting.
2006-04-03 15:21:59 +00:00
Walter Dörwald
aba10cf153
Turn firstweekday into a property.
2006-04-03 15:20:28 +00:00
Walter Dörwald
04ee87097c
Always use firstweekday module 7.
2006-04-02 22:11:10 +00:00
Walter Dörwald
f878b8120c
Make firstweekday a simple attribute instead
...
of hiding it behind a setter and a getter.
2006-04-01 20:40:23 +00:00
Walter Dörwald
48d5e508eb
Bug #947906 : Add classes LocaleTextCalendar and LocaleHTMLCalendar,
...
that output localized month and weekday names and can cope
with encodings.
2006-04-01 07:57:00 +00:00
Walter Dörwald
58917a6083
Bug #947906 : An object oriented interface has been added to the calendar
...
module. It's possible to generate HTML calendar now and the module can be
called as a script (e.g. via ``python -mcalendar``).
2006-03-31 15:26:22 +00:00
Raymond Hettinger
77d08bcfc2
SF bug #1193890 : calendar.weekheader not found in __all__
2005-05-10 03:20:12 +00:00
Tim Peters
bbc0d4409c
SF bug 1065388: calendar day/month name lookup too slow
...
__getitem__() methods: compute only the new spellings needed to satisfy
the given indexing object. This is purely an optimization (it should
have no effect on visible semantics).
2004-11-13 16:18:32 +00:00