"return locals()" change to track grammar change

This commit is contained in:
rocky
2020-02-06 20:08:00 -05:00
parent 7480af33d9
commit 3438e76865
3 changed files with 23 additions and 6 deletions

Binary file not shown.

View File

@@ -12,3 +12,9 @@ class abstractclassmethod(classmethod):
def __init__(self, callable):
callable.__isabstractmethod__ = True
super().__init__(callable)
# From 2.7.17 test_abc.py
# Bug was handling OldstyleClass correctly without
# a "return locals() but with a "pass"
class OldstyleClass:
pass