mirror of https://github.com/MISP/PyMISP
Fix Python2 - Python3 support
parent
2907fd18d7
commit
d48f248176
|
@ -20,10 +20,11 @@ from .exceptions import PyMISPError, NewEventError, NewAttributeError
|
||||||
|
|
||||||
# Least dirty way to support python 2 and 3
|
# Least dirty way to support python 2 and 3
|
||||||
try:
|
try:
|
||||||
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
|
||||||
basestring
|
basestring
|
||||||
|
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
||||||
except NameError:
|
except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
|
unicode = str
|
||||||
|
|
||||||
|
|
||||||
class MISPAttribute(object):
|
class MISPAttribute(object):
|
||||||
|
|
Loading…
Reference in New Issue