Flake8 fix.

This commit is contained in:
Tin Tvrtkovic 2016-03-16 03:15:07 +01:00
parent 26b7bff084
commit bef877320d
1 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,8 @@ def attributes(maybe_cl=None, these=None, repr_ns=None,
cl_dict = dict(cl.__dict__) cl_dict = dict(cl.__dict__)
cl_dict['__slots__'] = tuple(ca_list) cl_dict['__slots__'] = tuple(ca_list)
for ca_name in ca_list: for ca_name in ca_list:
cl_dict.pop(ca_name, None) # It might not actually be in there, # It might not actually be in there, f.e. if using 'these'.
# f.e. if using 'these'. cl_dict.pop(ca_name, None)
cl_dict.pop('__dict__', None) cl_dict.pop('__dict__', None)
cl = type(cl.__name__, cl.__bases__, cl_dict) cl = type(cl.__name__, cl.__bases__, cl_dict)