summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-10-09 15:16:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-10-09 15:16:03 (GMT)
commitb29614e047110f4d9af993a6cdec4e3fb7ef9738 (patch)
treea15a5ac7b508c5033f640123f498a322f44b04ce /Lib/os.py
parenta5119351519926971240f61d0c23a5fc5d00743e (diff)
downloadcpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.zip
cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.gz
cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.bz2
compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 842512a..84eeaeb 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -985,7 +985,7 @@ def popen(cmd, mode="r", buffering=-1):
raise TypeError("invalid cmd type (%s, expected string)" % type(cmd))
if mode not in ("r", "w"):
raise ValueError("invalid mode %r" % mode)
- if buffering == 0 or buffering == None:
+ if buffering == 0 or buffering is None:
raise ValueError("popen() does not support unbuffered streams")
import subprocess, io
if mode == "r":