New submission from Damjan Georgievski: 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. ---------- components: Extension Modules files: calendar.diff messages: 57384 nosy: gdamjan severity: normal status: open title: Error in standard module calendar type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file8734/calendar.diff __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1427> __________________________________
calendar.diff
Description: Binary data
_______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com