[issue15332] 2to3 should fix bad indentation (or warn about it)

2016-10-08 Thread R. David Murray

R. David Murray added the comment:

Agreed.  -tt is designed for this job; there's no need for 2to3 to duplicate 
the functionality given that reindent.py exists and can be (and "should" be) 
applied to the python2 source even if you aren't doing single-source.

--
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15332] 2to3 should fix bad indentation (or warn about it)

2014-06-26 Thread Mark Lawrence

Mark Lawrence added the comment:

I'd be inclined to close this as won't fix as a workaround is given, 
especially considering that mixing tabs and spaces has always been considered a 
no no.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15332
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15332] 2to3 should fix bad indentation (or warn about it)

2012-07-12 Thread Jakub Wilk

New submission from Jakub Wilk jw...@jwilk.net:

Python 3 is more rigid about mixing tabs and spaces within a single file. 2to3 
should either fix indentation that would become a syntax error in Python 3.X, 
or maybe issue a warning about it (or both).

Example:

$ python badtabs.py  echo okay
okay

$ 2to3 badtabs.py 
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: No files need to be modified.

$ python3 badtabs.py  echo okay
  File badtabs.py, line 3
'b'
  ^
TabError: inconsistent use of tabs and spaces in indentation

--
components: 2to3 (2.x to 3.x conversion tool)
files: badtabs.py
messages: 165303
nosy: jwilk
priority: normal
severity: normal
status: open
title: 2to3 should fix bad indentation (or warn about it)
Added file: http://bugs.python.org/file26365/badtabs.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15332] 2to3 should fix bad indentation (or warn about it)

2012-07-12 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

You can already find this using python -tt and fix it using reindent.py.

--
nosy: +benjamin.peterson
priority: normal - low

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com