summaryrefslogtreecommitdiff
path: root/checkers/stdlib.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-17 12:17:34 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-17 12:17:34 +0200
commitba17d450964cbe12d7ec107a4763f30ebab98109 (patch)
treeea8fa4fd25bb995ea089daec4bac522a95a0d917 /checkers/stdlib.py
parent838e975d6057871c6fd5149c61fffb1f5b83f428 (diff)
downloadpylint-ba17d450964cbe12d7ec107a4763f30ebab98109.tar.gz
fix regression introduced by 7eef8a7185ba: open mode no more checked with python2
Diffstat (limited to 'checkers/stdlib.py')
-rw-r--r--checkers/stdlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkers/stdlib.py b/checkers/stdlib.py
index 604ade8..89261eb 100644
--- a/checkers/stdlib.py
+++ b/checkers/stdlib.py
@@ -29,8 +29,8 @@ _VALID_OPEN_MODE_REGEX = r'^(r?U|[rwa]\+?b?)$'
if sys.version_info >= (3, 0):
OPEN_MODULE = '_io'
else:
- OPEN_MODULE = '__builtins__'
-
+ OPEN_MODULE = '__builtin__'
+
class OpenModeChecker(BaseChecker):
__implements__ = (IAstroidChecker,)
name = 'open_mode'
@@ -41,7 +41,7 @@ class OpenModeChecker(BaseChecker):
'Python supports: r, w, a modes with b, +, and U options. '
'See http://docs.python.org/2/library/functions.html#open'),
}
-
+
@utils.check_messages('W1501')
def visit_callfunc(self, node):
"""Visit a CallFunc node."""