summaryrefslogtreecommitdiff
path: root/checkers/base.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-08-29 14:24:30 -0400
committerBrett Cannon <brett@python.org>2014-08-29 14:24:30 -0400
commit8f3506b375a193856f7dd857f582f6f3b9c5580c (patch)
tree421c672fbc23e47f4fdc8c4b8dfb7154a9765dad /checkers/base.py
parentfea908c8e20aa3eac1bcaad18fecd4c68cfc9b05 (diff)
downloadpylint-8f3506b375a193856f7dd857f582f6f3b9c5580c.tar.gz
Change basestring to six.string_types
Diffstat (limited to 'checkers/base.py')
-rw-r--r--checkers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/base.py b/checkers/base.py
index 98e5a58..501d930 100644
--- a/checkers/base.py
+++ b/checkers/base.py
@@ -578,7 +578,7 @@ functions, methods
"""check for various kind of statements without effect"""
expr = node.value
if isinstance(expr, astroid.Const) and isinstance(expr.value,
- basestring):
+ six.string_types):
# treat string statement in a separated message
# Handle PEP-257 attribute docstrings.
# An attribute docstring is defined as being a string right after