Skip to content

Commit

Permalink
:add: revision version
Browse files Browse the repository at this point in the history
  • Loading branch information
b3j0f committed Oct 26, 2016
1 parent 140f308 commit f785a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions b3j0f/schema/lang/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def build(self, _resource, **kwargs):
for attrname in dir(_resource):
if (
attrname not in __slots__ and
attrname[0] != '_' and
attrname and attrname[0] != '_' and
attrname not in kwargs and
not hasattr(Schema, attrname)
):

attr = getattr(_resource, attrname)

if not isinstance(attr, MemberDescriptorType):
kwargs[attrname] = getattr(_resource, attrname)
kwargs[attrname] = attr

_resource = type(
_resource.__name__, (object,),
Expand Down

0 comments on commit f785a78

Please sign in to comment.