Bug 511401

Summary: Most peak-rules directives throw DeprecationWarning under python >= 2.6
Product: [Fedora] Fedora Reporter: Kyle VanderBeek <kylev>
Component: python-peak-rulesAssignee: Kyle VanderBeek <kylev>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 11CC: kylev, lmacken
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.eby-sarna.com/pipermail/peak/2009-July/003277.html
Whiteboard:
Fixed In Version: 0.5a1.dev-8.2582.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-29 21:31:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kyle VanderBeek 2009-07-14 23:26:46 UTC
Description of problem:
Due to some fancy footwork inside peak-rules, many directives throw a DeprecationWarning due to the way python >= 2.6 has deprecated sending any additional arguments to object.__new__(cls).

I'm discussing this with PEAK people right now, thread URL above.  The resulting fix is likely a patch to python-peak-util-addons, but I'm doing this to help me keep track of it.

It's causing deprecation warnings with Pylons under 2.6.


Version-Release number of selected component (if applicable):
python-peak-rules-0.5a1.dev-5.2582

How reproducible:
Always.

Steps to Reproduce:
#!/usr/bin/python

from peak.rules import before

def foo():
    print "foo"

@before(foo, "True")
def bar():
    print "bar"

foo()

Actual results:
/usr/lib/python2.6/site-packages/peak/rules/indexing.py:220: DeprecationWarning: object.__new__() takes no parameters
        return super(BitmapIndex, cls).__new__(cls, engine, expr)
bar
foo

Expected results:
bar
foo

Comment 1 Fedora Update System 2009-07-15 05:29:43 UTC
python-peak-rules-0.5a1.dev-8.2582.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/python-peak-rules-0.5a1.dev-8.2582.fc11

Comment 2 Fedora Update System 2009-07-19 10:36:07 UTC
python-peak-rules-0.5a1.dev-8.2582.fc11 has been pushed to the Fedora 11 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-peak-rules'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7792

Comment 3 Fedora Update System 2009-07-29 21:31:00 UTC
python-peak-rules-0.5a1.dev-8.2582.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.