We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6e06b commit 00560e6Copy full SHA for 00560e6
geoip2/records.py
@@ -22,8 +22,8 @@ class Record(SimpleEquality):
22
_valid_attributes = set()
23
24
def __init__(self, **kwargs):
25
- valid_args = dict((k, kwargs.get(k)) for k in self._valid_attributes)
26
- self.__dict__.update(valid_args)
+ for k in self._valid_attributes:
+ self.__dict__[k] = kwargs.get(k)
27
28
def __setattr__(self, name, value):
29
raise AttributeError("can't set attribute")
0 commit comments