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

Fix undefined name: ‘l’ —> “orig_line‘ #75

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

cclauss
Copy link

@cclauss cclauss commented Mar 12, 2018

l is an undefined name in this context. In the error message we want to show the user the original line.

flake8 testing of https://github.com/ros/genmsg on Python 2.7.14

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./src/genmsg/msg_loader.py:206:69: F821 undefined name 'l'
            raise InvalidMsgSpec("Invalid constant declaration: %s"%l)
                                                                    ^
1     F821 undefined name 'l

__l__ is an undefined name in this context.  In the error message we want to show the user the original line.

flake8 testing of https://github.com/ros/genmsg on Python 2.7.14

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./src/genmsg/msg_loader.py:206:69: F821 undefined name 'l'
            raise InvalidMsgSpec("Invalid constant declaration: %s"%l)
                                                                    ^
1     F821 undefined name 'l
```
@cclauss cclauss changed the title Fix undefined name:: ‘l’ —> “orig_line‘ Fix undefined name: ‘l’ —> “orig_line‘ Mar 12, 2018
@dirk-thomas
Copy link
Member

Thank you for the patch.

@dirk-thomas dirk-thomas merged commit cb02cec into ros:indigo-devel Mar 13, 2018
@cclauss cclauss deleted the patch-1 branch March 13, 2018 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants