Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow subclassing TLSEnum subclasses #78

Merged
merged 1 commit into from
Dec 16, 2015
Merged

Conversation

tomato42
Copy link
Member

because both the __dict__ and vars() return the values
of the current class, not all the classes in hierarchy, we need to
manually traverse the hierarchy and collect all the fields ourselves

this allows for extending the subclasses of TLSEnum subclasses and
making both toRepr() and toStr() continue to work

@tomato42 tomato42 added the review request PR finished, ready for review label Dec 12, 2015
because both the __dict__ and vars() return the values
of the current class, not all the classes in hierarchy, we need to
manually traverse the hierarchy and collect all the fields ourselves

this allows for extending the subclasses of TLSEnum subclasses and
making both toRepr() and toStr() continue to work
@The-Mule
Copy link
Collaborator

Looks sane, r+.

tomato42 added a commit that referenced this pull request Dec 16, 2015
allow subclassing TLSEnum subclasses
@tomato42 tomato42 merged commit 617050f into master Dec 16, 2015
@tomato42 tomato42 deleted the tlsenum-child-class-fix branch December 16, 2015 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review request PR finished, ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants