This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gdamjan
Recipients gdamjan
Date 2007-11-11.23:16:40
SpamBayes Score 0.09879317
Marked as misclassified No
Message-id <1194823000.48.0.0016595238228.issue1427@psf.upfronthosting.co.za>
In-reply-to
Content
This is LocaleTextCalendar.__init__

    def __init__(self, firstweekday=0, locale=None):
        TextCalendar.__init__(self, firstweekday)
        if locale is None:
            locale = locale.getdefaultlocale()
        self.locale = locale

Which can not work, obviosly ... let me hilight the important part
        if locale is None:
            locale = locale.getdefaultlocale()
???

Attached is a patch that corrects this and keeps the signature of the
method with the locale=None keyword.
Files
File name Uploaded
calendar.diff gdamjan, 2007-11-11.23:16:40
History
Date User Action Args
2007-11-11 23:16:40gdamjansetspambayes_score: 0.0987932 -> 0.09879317
recipients: + gdamjan
2007-11-11 23:16:40gdamjansetspambayes_score: 0.0987932 -> 0.0987932
messageid: <1194823000.48.0.0016595238228.issue1427@psf.upfronthosting.co.za>
2007-11-11 23:16:40gdamjanlinkissue1427 messages
2007-11-11 23:16:40gdamjancreate