mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 11:16:54 +00:00
removed a couple of slashes
This commit is contained in:
parent
abd1155e19
commit
ecc81ce46d
3 changed files with 3 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ class PathNode:
|
|||
self.look = look
|
||||
|
||||
def to_dot(self):
|
||||
print('node [shape=%s,label="%s"] %d;' % \
|
||||
print('node [shape=%s,label="%s"] %d;' %
|
||||
(self.look, self.name, self.dot_id()))
|
||||
|
||||
def dot_id(self):
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# flake8: noqa
|
||||
# pep8.py - Check Python source code formatting, according to PEP 8
|
||||
# Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net>
|
||||
#
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ class Checker(object):
|
|||
existing = scope.get(value.name)
|
||||
if (isinstance(existing, Importation)
|
||||
and not existing.used
|
||||
and (not isinstance(value, Importation) \
|
||||
and (not isinstance(value, Importation)
|
||||
or value.fullName == existing.fullName)
|
||||
and reportRedef):
|
||||
self.report(messages.RedefinedWhileUnused,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue