Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Issue #113 google style #129

Merged
merged 7 commits into from
Jul 28, 2016
Merged

Issue #113 google style #129

merged 7 commits into from
Jul 28, 2016

Conversation

cemsbr
Copy link
Contributor

@cemsbr cemsbr commented Jul 25, 2016

No description provided.

"""
message_type = header.message_type
if not isinstance(message_type, Type):
try:
if isinstance(message_type, str):
message_type = Type[message_type]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably you introduced a bug. message_type here is a string:

message_type = Type("OFPT_HELLO")
ValueError: 'OFPT_HELLO' is not a valid Type

Please check this with @diraol to make sure that this way is right.

Copy link
Contributor Author

@cemsbr cemsbr Jul 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. It was a false positive from pylint (pylint-dev/pylint#992). I reverted it and rebased.

@cemsbr cemsbr force-pushed the issue-#113-google-style branch from be52575 to 47f7907 Compare July 26, 2016 18:40
@beraldoleal beraldoleal merged commit c2bfda9 into develop Jul 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants