This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ramchandra Apte
Recipients Ramchandra Apte
Date 2012-08-08.05:18:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344403104.8.0.699404283397.issue15585@psf.upfronthosting.co.za>
In-reply-to
Content
The following standard library modules use os.popen which is deprecated.
These calls should be replaced with calls to subprocess.Popen .
Ironically, even the subprocess module uses os.popen!
webbrowser.py:            osapipe = os.popen("osascript", "w")
webbrowser.py:            osapipe = os.popen("osascript", "w")
pydoc.py:    pipe = os.popen(cmd, 'w')
uuid.py:            with os.popen(cmd) as pipe:
uuid.py:            pipe = os.popen(os.path.join(dir, 'ipconfig') + ' /all')
platform.py:#            to cover up situations where platforms don't have os.popen
platform.py:        This is mostly needed in case os.popen() is not available, or
platform.py:    # over os.popen over _popen
platform.py:            popen = os.popen
platform.py:        f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
platform.py:        f = os.popen('file -b "%s" 2> %s' % (target, DEV_NULL))
idlelib/IOBinding.py:            pipe = os.popen(command, "r")
os.py:# Supply os.popen()
subprocess.py:    Execute the string 'cmd' in a shell with os.popen() and return a 2-tuple
subprocess.py:    Execute the string 'cmd' in a shell with os.popen() and return a 2-tuple
subprocess.py:    pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
multiprocessing/__init__.py:            with os.popen(comm) as p:
pipes.py:for the built-in function open() or for os.popen().
pipes.py:        return os.popen(cmd, 'r')
pipes.py:        return os.popen(cmd, 'w')
ctypes/util.py:            f = os.popen(cmd)
ctypes/util.py:            with contextlib.closing(os.popen(cmd)) as f:
ctypes/util.py:            f = os.popen(cmd)
ctypes/util.py:            with contextlib.closing(os.popen(cmd)) as f:
ctypes/util.py:            with contextlib.closing(os.popen('/sbin/ldconfig -r 2>/dev/null')) as f:
ctypes/util.py:            with contextlib.closing(os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')) as f:
distutils/command/bdist_rpm.py:        out = os.popen(q_cmd)
distutils/emxccompiler.py:        out = os.popen(gcc_exe + ' -dumpversion','r')
History
Date User Action Args
2012-08-08 05:18:24Ramchandra Aptesetrecipients: + Ramchandra Apte
2012-08-08 05:18:24Ramchandra Aptesetmessageid: <1344403104.8.0.699404283397.issue15585@psf.upfronthosting.co.za>
2012-08-08 05:18:24Ramchandra Aptelinkissue15585 messages
2012-08-08 05:18:23Ramchandra Aptecreate