summaryrefslogtreecommitdiff
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-29 09:58:20 +0100
committerGitHub <noreply@github.com>2018-11-29 09:58:20 +0100
commit73104fa1e6a791f7d66c0091ed91f6c396ca0fb2 (patch)
tree460498e3e8f71eedf8f751ec72fe2662f2af5983 /Lib/platform.py
parent7cc1fa40b76de34a0fe86162667c87ce7a18f33d (diff)
downloadcpython-git-73104fa1e6a791f7d66c0091ed91f6c396ca0fb2.tar.gz
bpo-35345: Remove platform.popen() (GH-10781)
Remove platform.popen() function, it was deprecated since Python 3.3: use os.popen() instead. Rename also the "Removed" section to "API and Feature Removals" of What's New in Python 3.8.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index b4d4744dad..98ee06f85e 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -227,15 +227,6 @@ def libc_ver(executable=sys.executable, lib='', version='', chunksize=16384):
pos = m.end()
return lib, version
-def popen(cmd, mode='r', bufsize=-1):
-
- """ Portable popen() interface.
- """
- import warnings
- warnings.warn('use os.popen instead', DeprecationWarning, stacklevel=2)
- return os.popen(cmd, mode, bufsize)
-
-
def _norm_version(version, build=''):
""" Normalize the version and build strings and return a single