[New-bugs-announce] [issue37714] 2to3 tab Problems

Xinmeng Xia report at bugs.python.org
Tue Jul 30 00:26:13 EDT 2019


New submission from Xinmeng Xia <xiaxm at smail.nju.edu.cn>:

Traceback (most recent call last):
  File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/example.py", line 4, in <module>
    import FrisPy
  File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/FrisPy/__init__.py", line 5, in <module>
    from .disc import *
  File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/FrisPy/disc.py", line 7, in <module>
    from . import coefficient_model
  File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/FrisPy/coefficient_model.py", line 34
    if isinstance(args[0],np.ndarray): args = args[0]
                                                    ^
TabError: inconsistent use of tabs and spaces in indentation

It seems that it will better to use 4 spaces to replace "tab" in 2to3.

----------
components: 2to3 (2.x to 3.x conversion tool)
files: example.py
messages: 348714
nosy: xxm
priority: normal
severity: normal
status: open
title: 2to3  tab Problems
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file48513/example.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37714>
_______________________________________


More information about the New-bugs-announce mailing list