1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Upgrade Python syntax with pyupgrade

This commit is contained in:
Hugo
2019-05-22 17:44:36 +03:00
parent 7670e10bc2
commit 8f4e089200
5 changed files with 8 additions and 8 deletions

View File

@@ -118,10 +118,10 @@ def auto_decorate(
)
def __new__(cls, name, bases, attributes_dict):
new_attributes_dict = dict(
(attribute, maybe_decorate(attribute, value))
new_attributes_dict = {
attribute: maybe_decorate(attribute, value)
for attribute, value in attributes_dict.items()
)
}
return super(DecorateAll, cls).__new__(
cls, name, bases, new_attributes_dict
)