1 parent 18f73d7 commit a26bea8Copy full SHA for a26bea8
1 file changed
github2/core.py
@@ -152,10 +152,12 @@ def to_dict(self):
152
dict_ = vars(self)
153
return dict([(attr_name, _meta[attr_name].from_python(attr_value))
154
for attr_name, attr_value in dict_.items()])
155
- _contribute_method("__dict__", to_dict)
+ # I don't understand what this is trying to do.
156
+ # whatever it was meant to do is broken and is breaking the ability to call "vars" on instantiations, which is breaking all kindsa shit. -AS
157
+ #_contribute_method("__dict__", to_dict)
158
159
def iterate(self):
- not_empty = lambda e: e is not None
160
+ not_empty = lambda e: e[1] is not None #AS I *think* this is what was intended.
161
return iter(filter(not_empty, vars(self).items()))
162
_contribute_method("__iter__", iterate)
163
0 commit comments