diff options
author | 2012-12-13 19:09:33 +0200 | |
---|---|---|
committer | 2012-12-13 19:09:33 +0200 | |
commit | b67596d8157ef972d418e623a99c8462f485c4d6 (patch) | |
tree | 194ba5bc3fae07eaf4cf9e51197b7c8f6a114f30 /Lib/abc.py | |
parent | Merge with 3.3 for #16661 (diff) | |
download | cpython-b67596d8157ef972d418e623a99c8462f485c4d6.tar.gz cpython-b67596d8157ef972d418e623a99c8462f485c4d6.tar.bz2 cpython-b67596d8157ef972d418e623a99c8462f485c4d6.zip |
Issue #16049: add abc.ABC helper class.
Patch by Bruno Dupuis.
Diffstat (limited to 'Lib/abc.py')
-rw-r--r-- | Lib/abc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/abc.py b/Lib/abc.py index 09778e8609f..e807895da3e 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 |