[Python-apps-team] Bug#700566: pyflakes: unused message class: Redefined

Jakub Wilk jwilk at debian.org
Thu Feb 14 11:49:02 UTC 2013


Package: pyflakes
Version: 0.6.1-1~exp1
Severity: wishlist

The following Message subclass is defined in pyflakes.messages:

class Redefined(Message):
     message = 'redefinition of %r from line %r'

     def __init__(self, filename, lineno, name, orig_lineno):
         Message.__init__(self, filename, lineno)
         self.message_args = (name, orig_lineno)

As far as I can tell, this class is not used anywhere:

$ grep -rw Redefined /usr/share/pyshared/pyflakes
/usr/share/pyshared/pyflakes/messages.py:class Redefined(Message):

Could this class be removed?


-- System Information:
Debian Release: 7.0
   APT prefers unstable
   APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pyflakes depends on:
ii  python  2.7.3-4

-- 
Jakub Wilk



More information about the Python-apps-team mailing list