diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-18 18:20:00 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-08-18 18:20:00 (GMT) |
commit | 77a8cd65bed54ac07b264cd8eb26bc0da4d60130 (patch) | |
tree | 4505972d1ec398336ab59f2c6bf9512a0d7ebde7 /Lib/functools.py | |
parent | f5e0c41d6d143b16af4b9d97d5ce39eaa9e32df3 (diff) | |
download | cpython-77a8cd65bed54ac07b264cd8eb26bc0da4d60130.zip cpython-77a8cd65bed54ac07b264cd8eb26bc0da4d60130.tar.gz cpython-77a8cd65bed54ac07b264cd8eb26bc0da4d60130.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index 09df068..06a4ff1 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -567,7 +567,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 |