diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-03 23:47:16 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-03 23:47:16 +0200 |
commit | 1cc4d018ca86bdc2b75ff31bc8d3340f3412c49b (patch) | |
tree | c6a1f8e7345db56de728357b5bd7eaf35b1d718d /checkers/classes.py | |
parent | 81a9fe1cde3895a0df9a8bcebe05eae6cac3226f (diff) | |
download | pylint-1cc4d018ca86bdc2b75ff31bc8d3340f3412c49b.tar.gz |
Fix a false positive with invalid-slots-objects and unicode strings. Closes issue #421.
Diffstat (limited to 'checkers/classes.py')
-rw-r--r-- | checkers/classes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/classes.py b/checkers/classes.py index f7a344e..7b216fe 100644 --- a/checkers/classes.py +++ b/checkers/classes.py @@ -496,7 +496,7 @@ a metaclass class method.'} if infered is YES: continue if (not isinstance(infered, astroid.Const) or - not isinstance(infered.value, str)): + not isinstance(infered.value, six.string_types)): self.add_message('invalid-slots-object', args=infered.as_string(), node=elt) |