[pypy-svn] r73202 - pypy/trunk/pypy/tool

benjamin at codespeak.net benjamin at codespeak.net
Wed Mar 31 04:11:38 CEST 2010


Author: benjamin
Date: Wed Mar 31 04:11:36 2010
New Revision: 73202

Modified:
   pypy/trunk/pypy/tool/runsubprocess.py
Log:
pass correct filter arguments

Modified: pypy/trunk/pypy/tool/runsubprocess.py
==============================================================================
--- pypy/trunk/pypy/tool/runsubprocess.py	(original)
+++ pypy/trunk/pypy/tool/runsubprocess.py	Wed Mar 31 04:11:36 2010
@@ -47,8 +47,8 @@
     _source = os.path.dirname(os.path.abspath(__file__))
     _source = os.path.join(_source, 'runsubprocess.py')   # and not e.g. '.pyc'
     # Let's not hear about os.popen2's deprecation.
-    warnings.filterwarnings("ignore", "popen2", DeprecationWarning,
-                            "runsubprocess")
+    warnings.filterwarnings("ignore", ".*popen2.*", DeprecationWarning,
+                            "pypy.tool.runsubprocess")
     _child_stdin, _child_stdout = os.popen2(
         "'%s' '%s'" % (sys.executable, _source))
 



More information about the Pypy-commit mailing list