I know it is bad form to reply to your own posts, but silence has driven
me to this.
On 08/09/14 08:34, Ken McDonell wrote:
Things like
QA output created by 702
live - File "/home/kenj/src/pcp/qa/src/test_pcp.python", line 77
except pmapi.pmErr as error:
^
SyntaxError: invalid syntax
...
The problem here is the version of Python ... it is 2.4.3 on CentOS
5.10. For Python 2.5 or earlier, "as" is not allowed and "," must be used.
So I need Python-expert guidance here ... in PCPland should we
(a) disable all the Python bits for Python 2.5 or earlier?
(b) use the old-style "," everywhere (which apparently works in later
versions)? or
(c) is there some clever Python trick I'm missing?
This construct is _everywhere_ in the Python code (installed PCP bits
and QA bits), so answer carefully.
Although I've committed a patch to the Gluster PMDA earlier today, I've
never written any other Python code, so I'm a 100% Python newbie.
|