diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-05 20:38:53 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-05 21:23:25 +0200 |
commit | f7fc8710b09c3a2a3df041784cc8012359aba5c7 (patch) | |
tree | 10a503e9ecce1ab3c91f91a0d2270550fb09370d | |
parent | 293f74f63831549fd8ec80e1b50229b2e8fac54d (diff) |
sectracker.diagnostics: use isstring for py3 compatibility
-rw-r--r-- | lib/python/sectracker/diagnostics.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/sectracker/diagnostics.py b/lib/python/sectracker/diagnostics.py index 9a498cedca..b0caea9c0b 100644 --- a/lib/python/sectracker/diagnostics.py +++ b/lib/python/sectracker/diagnostics.py @@ -17,10 +17,12 @@ from collections import namedtuple as _namedtuple +from helpers import isstring + Message = _namedtuple("Message", "file line level message") def _checkfile(file): - if not isinstance(file, basestring): + if not isstring(file): raise ValueError("file name is not a string: " + repr(file)) return file |