Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 607421 Details for
Bug 852234
pcp 3.6.6-1 pcp.py fails to compile with python2.4 in epel5
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for pcp.py to compile on epel5 with python2.4
pcp.py.patch (text/plain), 1.08 KB, created by
Mark Goodwin
on 2012-08-28 07:04:49 UTC
(
hide
)
Description:
patch for pcp.py to compile on epel5 with python2.4
Filename:
MIME Type:
Creator:
Mark Goodwin
Created:
2012-08-28 07:04:49 UTC
Size:
1.08 KB
patch
obsolete
>diff --git a/src/python/pcp.py b/src/python/pcp.py >index d81d308..5633dd3 100644 >--- a/src/python/pcp.py >+++ b/src/python/pcp.py >@@ -174,7 +174,7 @@ class pmErr( Exception ): > try: > errSym = pmErrSymD[ errNum ] > errStr = libpcp.pmErrStr( errNum ) >- except KeyError as e: >+ except KeyError: > errSym = errStr = "" > > if self.args[0] == PM_ERR_NAME: >@@ -326,7 +326,10 @@ class pmValueSet(Structure): > ("valfmt", c_int), > ("vlist", (pmValue * 1)) ] > def __str__(self): >- return "pmValueSet@%#lx id=%#lx numval=%d valfmt=%d" % (addressof(self), self.pmid, self.numval, self.valfmt) + (str([" %s" % str(self.vlist[i]) for i in xrange(self.numval)])) if self.valfmt == 0 else "" >+ if self.valfmt == 0: >+ return "pmValueSet@%#lx id=%#lx numval=%d valfmt=%d" % (addressof(self), self.pmid, self.numval, self.valfmt) + (str([" %s" % str(self.vlist[i]) for i in xrange(self.numval)])) >+ else: >+ return "" > > def vlist_read( self ): > return pointer( self._vlist[0] )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 852234
: 607421 |
607424