diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-17 23:24:08 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-17 23:51:41 +0100 |
commit | 9c8c85801cfaeb57a742cbb2b9a4c732fca714e9 (patch) | |
tree | fce3a6033790a28ea360a6b977dc9ffbcad47f96 /astroid/interpreter/objectmodel.py | |
parent | 0b17c79b15c5598a0795baea576656d92dedbcd3 (diff) | |
download | astroid-git-simplification-for-python3.6-code.tar.gz |
Use new style super when applicablesimplification-for-python3.6-code
Diffstat (limited to 'astroid/interpreter/objectmodel.py')
-rw-r--r-- | astroid/interpreter/objectmodel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/interpreter/objectmodel.py b/astroid/interpreter/objectmodel.py index 83711ca0..9f106c9a 100644 --- a/astroid/interpreter/objectmodel.py +++ b/astroid/interpreter/objectmodel.py @@ -555,7 +555,7 @@ class BoundMethodModel(FunctionModel): class GeneratorModel(FunctionModel): def __new__(cls, *args, **kwargs): # Append the values from the GeneratorType unto this object. - ret = super(GeneratorModel, cls).__new__(cls, *args, **kwargs) + ret = super().__new__(cls, *args, **kwargs) generator = astroid.MANAGER.builtins_module["generator"] for name, values in generator.locals.items(): method = values[0] |