Share

PyX

Tracker: Bugs

5 os.popen4 is deprecated - ID: 2816621
Last Update: Comment added ( themill )

Running the latest PyX (0.10) on the latest stable Python (2.6.2), and
using canvas.text, results in the following warning:

/usr/lib/python2.6/site-packages/pyx/text.py:888: DeprecationWarning:
os.popen4 is deprecated. Use the subprocess module.

Presumably that line should be rewritten to use subprocess, as detailed on
http://docs.python.org/library/subprocess.html


Nobody/Anonymous ( nobody ) - 2009-07-04 14:57

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-09-29 00:41
Sender: themill

While fixing the pyx library is the obvious long-term solution, those who
are annoyed by this warning and just want to suppress it can add the
following lines either to their own python script or to the pyx/text.py
file that is part of pyx.

import warnings
warnings.filterwarnings("ignore", r".*popen.*", DeprecationWarning,
"pyx\.text")



Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.