summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-08-18 18:30:15 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-08-18 18:30:15 (GMT)
commitab7cc7598a3b8fd3bfb8c21412ac693ba8e9396a (patch)
treecbb1af1372b9ec5587b51820d2f86490e8ad161c /Lib/functools.py
parenta78ebe63239eb665ae139cf8155108af16b26b64 (diff)
downloadcpython-ab7cc7598a3b8fd3bfb8c21412ac693ba8e9396a.zip
cpython-ab7cc7598a3b8fd3bfb8c21412ac693ba8e9396a.tar.gz
cpython-ab7cc7598a3b8fd3bfb8c21412ac693ba8e9396a.tar.bz2
Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses.
Patch by Ethan Furman.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 3e93a3d..2c299d7 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -551,7 +551,7 @@ def _c3_merge(sequences):
break # reject the current head, it appears later
else:
break
- if not candidate:
+ if candidate is None:
raise RuntimeError("Inconsistent hierarchy")
result.append(candidate)
# remove the chosen candidate