summaryrefslogtreecommitdiff
path: root/Lib/abc.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-13 19:09:33 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-13 19:09:33 +0200
commite8fde7f4513bd1ddb270330aae6b5a6b2645c310 (patch)
treeab5adf2072efac346f1adbc88e388e0b7d9a16c7 /Lib/abc.py
parent447289bc54991d2f94052a1c180cf3567c81edbc (diff)
downloadcpython-e8fde7f4513bd1ddb270330aae6b5a6b2645c310.tar.gz
Issue #16049: add abc.ABC helper class.
Patch by Bruno Dupuis.
Diffstat (limited to 'Lib/abc.py')
-rw-r--r--Lib/abc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/abc.py b/Lib/abc.py
index 09778e8609..e807895da3 100644
--- a/Lib/abc.py
+++ b/Lib/abc.py
@@ -226,3 +226,9 @@ class ABCMeta(type):
# No dice; update negative cache
cls._abc_negative_cache.add(subclass)
return False
+
+class ABC(metaclass=ABCMeta):
+ """Helper class that provides a standard way to create an ABC using
+ inheritance.
+ """
+ pass