Issue 506 in psutil: Python 2.4 compatibility broken in psutil 2.1

3 views
Skip to first unread message

psu...@googlecode.com

unread,
May 19, 2014, 4:08:05 PM5/19/14
to psutil-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 506 by asqueella: Python 2.4 compatibility broken in psutil 2.1
http://code.google.com/p/psutil/issues/detail?id=506

What steps will reproduce the problem?
1. Use python 2.4 on Linux
2. import psutil #2.1.1 version

What do you see instead?

Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "psutil/__init__.py", line 89, in ?
import psutil._pslinux as _psplatform
File "psutil/_pslinux.py", line 504
yield (fd, family, type_, path, raddr, status, pid)
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

Please provide any additional information below.

This was introduced recently in 8a21224a674a ("merge netstat3 branch").
There are two occurrences of this, and after commenting out the methods'
contents psutil seems to work fine on this box.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

psu...@googlecode.com

unread,
May 19, 2014, 4:09:05 PM5/19/14
to psutil-...@googlegroups.com

psu...@googlecode.com

unread,
May 26, 2014, 11:05:05 AM5/26/14
to psutil-...@googlegroups.com

Comment #2 on issue 506 by g.rodola: Python 2.4 compatibility broken in
psutil 2.1
http://code.google.com/p/psutil/issues/detail?id=506

psutil has been migrated from Google Code to Github (see:
http://grodola.blogspot.com/2014/05/goodbye-google-code-im-moving-to-github.html).
Please do NOT reply here but use this instead:
https://github.com/giampaolo/psutil/issues/506
Reply all
Reply to author
Forward
0 new messages