E501 mistake

Bug #701854 reported by Konstantin Nikitin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pep8 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: pep8

I have the docstring in Russian: ex:

#/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Модуль загрузки информации о проверках из указанной директории
"""

But pep8 script doesn't decode this string to unicode before processing as I see:

$ pep8 check_make_out.py
check_make_out.py:5:80: E501 line too long (117 characters)

this line is 62 characters long;

$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> len('Модуль загрузки информации о проверках из указанной директории')
117
>>> len(u'Модуль загрузки информации о проверках из указанной директории')
62

pep8 v. 0.4.2-3, Ubuntu 10.04

Thanks!

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: pep8 0.4.2-3
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
Architecture: i386
Date: Wed Jan 12 13:41:28 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
PackageArchitecture: all
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: pep8

Revision history for this message
Konstantin Nikitin (nk-0) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Still a problem in oneiric.

Regards
chuck

Changed in pep8 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Florent (florent.x) wrote :

this is fixed upstream.

Revision history for this message
Pander (pander) wrote :

Measnwhile pep8 that is shipped is of a much newer version. Can this bug be closed?

Pander (pander)
tags: added: python
Revision history for this message
Robie Basak (racb) wrote :

Wily has 1.6.2 which was released upstream on 2015-02-15. So given Florent's comment that this was fixed upstream in 2013 I think it's safe to assume that this is now fixed (in Wily at least).

If my assumption is false, then please state which version is still affected and then reopen.

Changed in pep8 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.