Bug 552467 - DeprecationWarning: object.__new__() takes no parameters return ExprBase.__new__(klass,function,*argexprs)
Summary: DeprecationWarning: object.__new__() takes no parameters return ExprBase.__ne...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ruledispatch
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-05 08:05 UTC by Adrian Reber
Modified: 2016-09-20 02:40 UTC (History)
6 users (show)

Fixed In Version: python-ruledispatch-0.5a1-0.17.svnr2506.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-22 22:33:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adrian Reber 2010-01-05 08:05:04 UTC
Description of problem:
I have update my mirrormanager machine from Fedora 10 to Fedora 12 and now I
get lots of DeprecationWarnings from various libraries.

/usr/lib64/python2.6/site-packages/dispatch/predicates.py:379: DeprecationWarning: object.__new__() takes no parameters                        
  return ExprBase.__new__(klass,function,*argexprs)


Version-Release number of selected component (if applicable):
python-ruledispatch-0.5a0-0.15.svnr2306.fc12.x86_64

Comment 1 Toshio Ernie Kuratomi 2010-01-09 16:50:07 UTC
Luke, I took a brief look at this.  I'm not quite sure what the pje code is doing but I think the right fix is to give ExprBase in dispatch/strategy.py a __new__() method that looks like this:

def __new__(klass, *args):
    return object.__new__()

Does that look right to you or am I ignoring some subtlety of what pje is doing?

Comment 2 Luke Macken 2010-04-13 03:11:01 UTC
I think that sounds about right, Toshio.

Comment 3 Toshio Ernie Kuratomi 2010-04-13 21:30:54 UTC
New build for rawhide and F-13.  just a deprecation warning so I didn't submit builds for F-12, F-11.

http://koji.fedoraproject.org/koji/taskinfo?taskID=2113886
http://koji.fedoraproject.org/koji/taskinfo?taskID=2113933

PJE says that he's trying not to support this any longer but that he might do bugfix releases.  If you want to take this patch to him and see if he'll merge it you're welcome to it.

Comment 4 Fedora Update System 2010-04-13 21:31:37 UTC
python-ruledispatch-0.5a1-0.17.svnr2506.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/python-ruledispatch-0.5a1-0.17.svnr2506.fc13

Comment 5 Fedora Update System 2010-04-15 03:17:48 UTC
python-ruledispatch-0.5a1-0.17.svnr2506.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-ruledispatch'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-ruledispatch-0.5a1-0.17.svnr2506.fc13

Comment 6 Fedora Update System 2010-04-22 22:33:30 UTC
python-ruledispatch-0.5a1-0.17.svnr2506.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.