summaryrefslogtreecommitdiff
path: root/checkers/strings.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-06-15 09:25:53 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-06-15 09:25:53 +0300
commitd1ca86f23973c024ec0f464a1eaacc8c731cfe37 (patch)
treea79ca572180bf0adb1e859fecafd4d002ab8ac91 /checkers/strings.py
parent96b91a84ce72057078b336de3aba3bcf7fadad7b (diff)
downloadpylint-git-d1ca86f23973c024ec0f464a1eaacc8c731cfe37.tar.gz
Fix a potential crash for accessors like "{0.missing}".
--HG-- branch : format
Diffstat (limited to 'checkers/strings.py')
-rw-r--r--checkers/strings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/strings.py b/checkers/strings.py
index 4f4293a30..9be662785 100644
--- a/checkers/strings.py
+++ b/checkers/strings.py
@@ -188,7 +188,7 @@ def get_access_path(key, parts):
path.append(".{}".format(specifier))
else:
path.append("[{!r}]".format(specifier))
- return key + "".join(path)
+ return str(key) + "".join(path)
class StringFormatChecker(BaseChecker):