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

Python undefined names #72

Closed
cclauss opened this issue Jul 22, 2021 · 2 comments
Closed

Python undefined names #72

cclauss opened this issue Jul 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@cclauss
Copy link
Contributor

cclauss commented Jul 22, 2021

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./mvt/mvt/ios/modules/fs/locationd.py:46:34: F821 undefined name 'entry'
                    "timestamp": entry[ts],
                                 ^
./mvt/mvt/ios/modules/fs/locationd.py:49:42: F821 undefined name 'entry'
                    "data": f"{ts} from {entry['package']}"
                                         ^
./mvt/mvt/ios/modules/fs/locationd.py:65:94: F821 undefined name 'date'
                        result[ts] = convert_timestamp_to_iso(convert_mactime_to_unix(result[date]))
                                                                                             ^
3     F821 undefined name 'entry'
3
@Te-k Te-k added the bug Something isn't working label Jul 22, 2021
@cclauss
Copy link
Contributor Author

cclauss commented Jul 25, 2021

This issue was closed prematurely. The last undefined name still exists because date appears only once in this file. Was this supposed to be the str "date"? Or maybe "timestamp"?

@botherder
Copy link
Contributor

Thank you, should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants