zhengzheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

version 0.6.0 not compatible with Python 2.4 #318

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
`psutil` seems to import functools, which is only available from Python 2.5 
onwards.

Fortunately, the only piece needed from `functools` is
`functools.wraps`, which can be readily included in `psutil._compat`.

The attached patch does that, plus a similar fix in
`test/test_psutil.py`, because `TestCase.assertIn` is not available in
Py 2.4.

It'd be great if you could push this quickly to release, because the current 
`psutil` version on PyPI is broken on 2.4.

Original issue reported on code.google.com by riccardo.murri@gmail.com on 16 Aug 2012 at 2:39

Attachments:

GoogleCodeExporter commented 8 years ago
Damn... you're right.
I'll package a new release as soon as possible.

Original comment by g.rodola on 16 Aug 2012 at 2:58

GoogleCodeExporter commented 8 years ago
Fixed in r1524.
0.6.1 version is now available.
Thanks for signaling.

Original comment by g.rodola on 16 Aug 2012 at 4:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1524 == revision 2305f10a1da8

Original comment by g.rodola on 2 Mar 2013 at 12:12