DeprecationWarning on Python 2.6 about tzinfo.__init__ taking no parameters
Running the test suite on [8223] with Python 2.6 beta2 I see a DeprecationWarning about tzinfo.__init__
taking no parameters:
D:\u\kmt\django\trunk\tests>\bin\Python26b2\python.exe runtests.py --settings=testsettings dateformat
d:\u\kmt\django\trunk\django\utils\tzinfo.py:40: DeprecationWarning: object.__init__() takes no parameters
tzinfo.__init__(self, dt)
----------------------------------------------------------------------
Ran 1 test in 0.040s
OK
I believe it's a result of this Python change: http://bugs.python.org/issue1683368. That is, it's never taken a parameter and Python is only now warning about it. I'll attach a patch that removes the extraneous parameter. Tested on Python 2.3.5/2.5.1/2.6b2.
Change History
(5)
Summary: |
DeprecationWarning on Python 2.6 about tzinit.__init__ taking no parameters → DeprecationWarning on Python 2.6 about tzinfo.__init__ taking no parameters
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
(In [8237]) Fixed #8142 -- Removed an unnecessary parameter in a superclass init call.
Patch from Karen Tracey.