Bug 871002 - [abrt] python-pep8-1.0.1-1.fc17: unindent does not match any outer indentation level (<tokenize>, line 25)
Summary: [abrt] python-pep8-1.0.1-1.fc17: unindent does not match any outer indentatio...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pep8
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ian Weller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:93e8d99803ea7171cc0c044361a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-29 11:43 UTC by Steve Tyler
Modified: 2013-01-30 04:56 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-30 03:16:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dso_list (33 bytes, text/plain)
2012-10-29 11:43 UTC, Steve Tyler
no flags Details
File: smolt_data (3.00 KB, text/plain)
2012-10-29 11:43 UTC, Steve Tyler
no flags Details
File: core_backtrace (465 bytes, text/plain)
2012-10-29 11:43 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2012-10-29 11:43:25 UTC
Description of problem:
pep8 non-python-file

Version-Release number of selected component:
python-pep8-1.0.1-1.fc17

Additional info:
libreport version: 2.0.16
abrt_version:   2.0.16
cmdline:        /usr/bin/python /usr/bin/pep8 localization-test-report-1.txt
kernel:         3.6.2-4.fc17.x86_64

backtrace:
:unindent does not match any outer indentation level (<tokenize>, line 25)
:
:Traceback (most recent call last):
:  File "/usr/bin/pep8", line 9, in <module>
:    load_entry_point('pep8==1.0.1', 'console_scripts', 'pep8')()
:  File "/usr/lib/python2.7/site-packages/pep8.py", line 1348, in _main
:    runner(path)
:  File "/usr/lib/python2.7/site-packages/pep8.py", line 1023, in input_file
:    errors = Checker(filename).check_all()
:  File "/usr/lib/python2.7/site-packages/pep8.py", line 949, in check_all
:    for token in tokenize.generate_tokens(self.readline_check_physical):
:  File "/usr/lib64/python2.7/tokenize.py", line 351, in generate_tokens
:    ("<tokenize>", lnum, pos, line))
:  File "<tokenize>", line 25
:    10: cs.UTF-8             cs_CZ.UTF-8            0   1    'Czech'
:   ^
:IndentationError: unindent does not match any outer indentation level

Comment 1 Steve Tyler 2012-10-29 11:43:28 UTC
Created attachment 634975 [details]
File: dso_list

Comment 2 Steve Tyler 2012-10-29 11:43:30 UTC
Created attachment 634976 [details]
File: smolt_data

Comment 3 Steve Tyler 2012-10-29 11:43:32 UTC
Created attachment 634977 [details]
File: core_backtrace

Comment 4 Ian Weller 2013-01-30 03:16:13 UTC
This crash report appears to be for running pep8 on obviously incorrect code, and a traceback is to be expected.

Reporter, you may reopen this ticket -- with more information on why this is a bug -- if you believe the above is incorrect.

Comment 5 Steve Tyler 2013-01-30 04:12:28 UTC
That makes about as much sense as saying that a C compiler that core dumps on invalid code is working as expected. The proper thing to do here is to display an informative error message, not a traceback.

Comment 6 Ian Weller 2013-01-30 04:56:17 UTC
This isn't a compiler, it's a code cleanup tool. If your code cleanup tool can't read your code, there is either a major bug in the tool or your code has major problems. In this case I see the latter.

If you really think it shouldn't throw an exception, please file an issue upstream: https://github.com/jcrocholl/pep8


Note You need to log in before you can comment on or make changes to this bug.