Skip to content

__builtin__ became builtins in python3#16

Merged
dirk-thomas merged 1 commit intoros-visualization:groovy-develfrom
Nodd:py3
Sep 19, 2014
Merged

__builtin__ became builtins in python3#16
dirk-thomas merged 1 commit intoros-visualization:groovy-develfrom
Nodd:py3

Conversation

@Nodd
Copy link
Copy Markdown
Contributor

@Nodd Nodd commented Sep 16, 2014

Python3 compatibility.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please update the pull request to use a try / except block instead rather then the explicit check of the version number. So instead of line 33 do something like:

try:
    import builtins
except ImportError:
    import __builtin__ as builtins

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done !

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please only catch ImportError here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops sorry !

@dirk-thomas
Copy link
Copy Markdown
Contributor

Thanks.

dirk-thomas added a commit that referenced this pull request Sep 19, 2014
__builtin__ became builtins in python3
@dirk-thomas dirk-thomas merged commit 9912a6d into ros-visualization:groovy-devel Sep 19, 2014
@Nodd Nodd deleted the py3 branch September 19, 2014 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants