Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348794 - dev-python/pylint thinks tab is 2 spaces, causing carets to be in the wrong place
Summary: dev-python/pylint thinks tab is 2 spaces, causing carets to be in the wrong p...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Python Gentoo Team
URL: https://bitbucket.org/logilab/pylint/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 15:23 UTC by Marijn Schouten (RETIRED)
Modified: 2015-07-29 01:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn Schouten (RETIRED) gentoo-dev 2010-12-15 15:23:10 UTC
=dev-python/pylint-0.22.0 thinks tab is 2 spaces, causing carets to be in the wrong place. I've created a small testfile with a tab character on the second line and a style issue:

$ cat linttest.py
def f():
	i=1

Notice that pylints output includes a line with the single character '^' which should point to the '=' character in the line above, but doesn't do so, because pylint has indented it by 2 spaces instead of a tab.

$ pylint --reports=n linttest.py 
No config file found, using default configuration
************* Module linttest
W:  2: Found indentation with tabs instead of spaces
C:  1: Missing docstring
C:  1:f: Invalid name "f" (should match [a-z_][a-z0-9_]{2,30}$)
C:  1:f: Missing docstring
C:  2:f: Operator not preceded by a space
	i=1
  ^
W:  2:f: Unused variable 'i'
Comment 1 SpanKY gentoo-dev 2015-07-28 07:55:48 UTC
i don't think pylint thinks tabs are two spaces ... the default is for it to use spaces for indentation but you used tabs -- notice the first warning in the output that talks about incorrect indentation

at any rate, posted a bug upstream.  they can sort it out as we don't really do development on this package ourselves.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-07-29 01:39:02 UTC
SpanKY, thanks