Closed The-Compiler closed 6 years ago
I have no idea where the "if __name__ == 'xxxxxxxx':
" is coming from, it's certainly not something in my code.
Nor mine. I just pushed a new version I'll do some more testing today. I see you're on Python 3.5, I'll make sure to explicitly test it.
On Tue, Sep 20, 2016, 3:38 AM Florian Bruhin notifications@github.com wrote:
I have no idea where the "if name == 'xxxxxxxx':" is coming from, it's certainly not something in my code.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JBKahn/flake8-debugger/issues/5#issuecomment-248227052, or mute the thread https://github.com/notifications/unsubscribe-auth/ACiBvfQsjO3ANaKrOi-t8EX49YgVxqojks5qr42CgaJpZM4KBUA9 .
FWIW I added a print(logical_line)
at the top of check_for_debugger_import
and I get this:
"""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"""
import sys
import qutebrowser.qutebrowser
if __name__ == 'xxxxxxxx':
which looks like a mangled (by flake8?) version of qutebrowser/__main__.py
.
Hmm is that the latest version? What if you downgrade or upgrade the dependency?
On Tue, Sep 20, 2016, 7:54 AM Florian Bruhin notifications@github.com wrote:
FWIW I added a print(logical_line) at the top of check_for_debugger_import and I get this:
"""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"""import sysimport qutebrowser.qutebrowserif name == 'xxxxxxxx':
which looks like a mangled (by flake8?) version of qutebrowser/main.py https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/__main__.py .
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/JBKahn/flake8-debugger/issues/5#issuecomment-248279862, or mute the thread https://github.com/notifications/unsubscribe-auth/ACiBvSQwUS1r9zV-Lpo6my9gbOCGbY9aks5qr8l7gaJpZM4KBUA9 .
Well it does mangle all text during parsing, but perhaps there's something about parsing the conditional where it's trying to parse it in isolation and throwing an error since it's just a condition and a colon. That shouldn't happen...
Just on my way to my office now, seems like it could be an issue with my usage of ast. If i can reproduce this then I'll probably pull the version and fix it over the next few days.
Same error with python 2.7.
Ya, I rolled back the change, I'll fix it asap.
Finally circled back, fixed and released a new version.
Hey,
I'm still on flake8 2.6.2 since some plugins I need haven't been ported yet. Do you still intend to support it?
I updated flake8-debugger to 2.0.0 and get this: