[New-bugs-announce] [issue12771] 2to3 -d adds extra whitespace
Vlada Peric
report at bugs.python.org
Wed Aug 17 16:59:47 CEST 2011
New submission from Vlada Peric <vlada.peric at gmail.com>:
When running 2to3 -d on this doctest (from this file[0] in SymPy):
>>> class SzUpKet(Ket):
... def _represent_SzOp(self, basis, **options):
... return Matrix([1,0])
...
2to3 adds an extra space in the last line. This then raises an error for our automated whitespace tests (and is generally annoying). I haven't seen this happen anywhere else (and SymPy is a big codebase).
It's really a minor issue, though (I can't set the priority myself, though).
[0] https://github.com/sympy/sympy/blob/master/sympy/physics/quantum/represent.py
----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 142281
nosy: Aaron.Meurer, VPeric
priority: normal
severity: normal
status: open
title: 2to3 -d adds extra whitespace
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12771>
_______________________________________
More information about the New-bugs-announce
mailing list