Skip to content

Allow disable of W601#227

Merged
florentx merged 1 commit intoPyCQA:masterfrom
solj:disable-w601
Mar 24, 2014
Merged

Allow disable of W601#227
florentx merged 1 commit intoPyCQA:masterfrom
solj:disable-w601

Conversation

@solj
Copy link
Copy Markdown
Contributor

@solj solj commented Sep 5, 2013

Example library which uses the "has_key" method:

http://apt.alioth.debian.org/python-apt-doc/library/apt.cache.html#apt.cache.Cache.has_key

While has_key no longer exists for python 3, there are still libraries
which have this method and do not allow for 'key in dict'. This enables
the "nopep8/noqa" methods of disabling the warning per-line.

Signed-off-by: Sol Jerome sol.jerome@gmail.com

While has_key no longer exists for python 3, there are still libraries
which have this method and do not allow for 'key in dict'. This enables
the "nopep8/noqa" methods of disabling the warning per-line.

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
florentx added a commit that referenced this pull request Mar 24, 2014
@florentx florentx merged commit dfdc5c0 into PyCQA:master Mar 24, 2014
@florentx florentx added this to the 1.5.0 milestone Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants