Skip to content

Commit

Permalink
Py3 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Jul 11, 2017
1 parent 5ec2227 commit a257324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uwsgiconf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def filter_locals(locals_dict, drop=None):
:rtype: dict
"""
drop = drop or []
drop.append('self')
drop.extend([
'self',
'__class__', # py3
])
locals_dict = {k: v for k, v in locals_dict.items() if k not in drop}
return locals_dict

Expand Down

0 comments on commit a257324

Please sign in to comment.