summaryrefslogtreecommitdiff
path: root/checkers/misc.py
diff options
context:
space:
mode:
authorAlexandru Coman <fcoman@bitdefender.com>2014-07-09 11:26:27 +0300
committerAlexandru Coman <fcoman@bitdefender.com>2014-07-09 11:26:27 +0300
commitf2fd6266e5bcf4a1f5c268c144ce0aff9529e51a (patch)
tree3d85c09316ae2b594c46f1f164ee71ff60b6ce8a /checkers/misc.py
parent301c7fab2effb2a3ea440e88d5e3e9c1509cd487 (diff)
downloadpylint-f2fd6266e5bcf4a1f5c268c144ce0aff9529e51a.tar.gz
Fix a false positive regarding W0511. Closes issue #149.
Diffstat (limited to 'checkers/misc.py')
-rw-r--r--checkers/misc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkers/misc.py b/checkers/misc.py
index 3afe63b..b4738b0 100644
--- a/checkers/misc.py
+++ b/checkers/misc.py
@@ -73,8 +73,8 @@ class EncodingChecker(BaseChecker):
stream = module.file_stream
stream.seek(0) # XXX may be removed with astroid > 0.23
if self.config.notes:
- notes = re.compile(r'.*?#\s+({})(:*\s*.+)'.format(
- "|".join(self.config.notes)))
+ notes = re.compile(
+ r'.*?#\s+(%s)(:*\s*.+)' % "|".join(self.config.notes))
else:
notes = None
if module.file_encoding: