mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 21:13:56 +01:00
Fix: Basestring missing from python 3
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1e3d0f2c60
commit
367dfb90c2
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
# 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
|
# 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
|
# --------------------------------------------------------------------- helpers
|
||||||
|
|
||||||
class ResultCache(object):
|
class ResultCache(object):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue