Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.4 compatibility broken in psutil 2.1 #506

Closed
giampaolo opened this issue May 23, 2014 · 1 comment
Closed

Python 2.4 compatibility broken in psutil 2.1 #506

giampaolo opened this issue May 23, 2014 · 1 comment

Comments

@giampaolo
Copy link
Owner

From asqueella on May 19, 2014 22:07:51

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' 

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.

Original issue: http://code.google.com/p/psutil/issues/detail?id=506

@giampaolo
Copy link
Owner Author

From asqueella on May 19, 2014 13:08:36

https://code.google.com/p/psutil/source/detail?spec=svn8a21224a674ac729eb176f89177c67ab0234cdaa&r=8a21224a674ac729eb176f89177c67ab0234cdaa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant