Bug 854979
Summary: | Python-2.4 incompatible syntax | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Vitaly Kuznetsov <vkuznets> | ||||
Component: | python-bugzilla | Assignee: | Will Woods <wwoods> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | el5 | CC: | crobinso, dcantrell, dzickus, wwoods | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-11-28 14:58:35 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Vitaly Kuznetsov
2012-09-06 12:39:46 UTC
Created attachment 610371 [details]
Updated python-bugzilla-2.4-backcompat.patch
Here's the python-bugzilla 2.4 backcompat patch updated to fix the exception syntax. The changed portion is this addition:
Index: python-bugzilla-0.7.0/bugzilla/util.py
===================================================================
--- python-bugzilla-0.7.0.orig/bugzilla/util.py
+++ python-bugzilla-0.7.0/bugzilla/util.py
@@ -28,7 +28,7 @@ def open_without_clobber(name, *args):
while fd is None:
try:
fd = os.open(name, os.O_CREAT|os.O_EXCL, 0666)
- except OSError as e:
+ except OSError, e:
if e.errno == os.errno.EEXIST:
name = "%s.%i" % (orig_name, count)
count += 1
I checked that there are presently no other places that use the as syntax.
If we're preparing (in upstream) for python3, we probably want to switch all exception handling to the as syntax and the difference will become greater. (Perhaps we'd be able to use 3to2 on that, though)....
python-bugzilla-0.7.0-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/python-bugzilla-0.7.0-2.el5 Thanks Toshio, I used your fix. Package python-bugzilla-0.7.0-2.el5: * should fix your issue, * was pushed to the Fedora EPEL 5 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing python-bugzilla-0.7.0-2.el5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13225/python-bugzilla-0.7.0-2.el5 then log in and leave karma (feedback). Package hit stable |