-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Duplicate "except" branch #485
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
Comments
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Yes, it's possible. Would you like to work on a patch? |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Yes. If you need any help, feel free to ask, either here or you can find me on IRC on freenode, #pylint. |
Original comment by Steven Myint (BitBucket: myint, GitHub: @myint?): Given that One thing I noticed after setting up a Python 2 virtualenv and running |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Nope, 2to3 is used only for converting the tests, the rest works under both versions. Hm, didn't know about the problem you're experiencing, I'll have a look. |
Original comment by Steven Myint (BitBucket: myint, GitHub: @myint?): Actually, the in-pylint-directory problem happens even without virtualenv. It happens with my normally-installed pylint. And it gives some irrelevant warning messages instead:
(By the way, the associated pull request for this issue is pull request #237.) |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Could you report another issue for that, please? I'll have a look at the pull request later today. |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Add "duplicate-except" checker It checks if an exception type was already caught previously in the same |
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore): Thank you! |
Originally reported by: Steven Myint (BitBucket: myint, GitHub: @myint?)
I wonder if it would be useful for Pylint to detect duplicate
except
branches. For example, I ran into something like this today:Thanks
The text was updated successfully, but these errors were encountered: