From da503215da145bf326312c895da4b5a39522dd11 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 22 Apr 2015 00:20:38 +0100 Subject: [PATCH] Only check strings --- saltpylint/strings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/saltpylint/strings.py b/saltpylint/strings.py index 5c960bf..34135a4 100644 --- a/saltpylint/strings.py +++ b/saltpylint/strings.py @@ -116,6 +116,10 @@ def visit_callfunc(self, node): # checking. continue + if not isinstance(inferred.value, basestring): + # If it's not a string, continue + continue + if BAD_FORMATTING_SLOT.findall(inferred.value): if self.config.un_indexed_curly_braces_always_error or \ sys.version_info[:2] < (2, 7):