summaryrefslogtreecommitdiff
path: root/pylint/checkers/strings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/strings.py')
-rw-r--r--pylint/checkers/strings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py
index 8892c2c..b97738d 100644
--- a/pylint/checkers/strings.py
+++ b/pylint/checkers/strings.py
@@ -361,6 +361,9 @@ class StringMethodsChecker(BaseChecker):
return
if not isinstance(strnode, astroid.Const):
return
+ if not isinstance(strnode.value, six.string_types):
+ return
+
if node.starargs or node.kwargs:
# TODO: Don't complicate the logic, skip these for now.
return