mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)
This commit is contained in:
parent
388b3a6ebc
commit
1fe9ca09a3
2 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
|
||||||
|
|
||||||
*Release date: XX-AUG-2006*
|
*Release date: XX-AUG-2006*
|
||||||
|
|
||||||
|
- Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)
|
||||||
|
|
||||||
- ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
|
- ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
|
||||||
|
|
||||||
- When used w/o subprocess, all exceptions were preceded by an error
|
- When used w/o subprocess, all exceptions were preceded by an error
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,9 @@ def tabnanny(self, filename):
|
||||||
self.editwin.gotoline(nag.get_lineno())
|
self.editwin.gotoline(nag.get_lineno())
|
||||||
self.errorbox("Tab/space error", indent_message)
|
self.errorbox("Tab/space error", indent_message)
|
||||||
return False
|
return False
|
||||||
|
except IndentationError:
|
||||||
|
# From tokenize(), let compile() in checksyntax find it again.
|
||||||
|
pass
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def checksyntax(self, filename):
|
def checksyntax(self, filename):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue