Fix Python2 - Python3 support

pull/30/head
Raphaël Vinot 2016-10-27 15:58:58 -04:00
parent 2907fd18d7
commit d48f248176
1 changed files with 2 additions and 1 deletions

View File

@ -20,10 +20,11 @@ from .exceptions import PyMISPError, NewEventError, NewAttributeError
# Least dirty way to support python 2 and 3
try:
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
basestring
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
except NameError:
basestring = str
unicode = str
class MISPAttribute(object):