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 division in tabnanny #60682
Comments
Tabnanny should use floor division in calculation, the comment says about this. But in the current Python 3 code "/" was not changed to "//". |
Well, sounds reasonable since we're working with an integer number of spaces :) |
The patch looks OK, buy can you provide a way to reproduce the error (if you get any)? |
No, I have not any. I am even not sure tabnanny works at all. But this bug is obvious. So, let's fix it and go on.
This will be good, but it is a different issue. I'm not ready to write a test.
I can't see a ResourceWarning. A "finally: f.close()" already exists near the end of the check() method. |
Looks like it was added in 3.3. |
New changeset fc17fdd42c66 by Ezio Melotti in branch '3.2': New changeset d7558e4015a4 by Ezio Melotti in branch '3.3': New changeset 377a50f8cb8b by Ezio Melotti in branch 'default': |
Applied the patch on all 3 branches and fixed the resource warning in 3.2. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: