Fix: Basestring missing from python 3

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-10 15:34:08 +00:00
commit 367dfb90c2

View file

@ -20,6 +20,12 @@ import datetime
# devel: needs to be installed before this-devel can be installed, i.e. before _other_ packages can be built against this
# run: needs to be installed before this-run can be installed, i.e. before this and other packages can run with this
# --------------------------------------------------------------------- Python 2 / 3 compatibility stuff
try:
basestring
except NameError:
basestring = str
# --------------------------------------------------------------------- helpers
class ResultCache(object):