mirror of https://github.com/MISP/PyMISP
Fix forgotten import
parent
857cd40ea2
commit
81e3ce37af
|
@ -6,6 +6,7 @@ import time
|
||||||
import json
|
import json
|
||||||
from json import JSONEncoder
|
from json import JSONEncoder
|
||||||
import os
|
import os
|
||||||
|
import warnings
|
||||||
try:
|
try:
|
||||||
from dateutil.parser import parse
|
from dateutil.parser import parse
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -21,6 +22,7 @@ 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:
|
||||||
basestring
|
basestring
|
||||||
|
unicode
|
||||||
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
||||||
except NameError:
|
except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
|
|
Loading…
Reference in New Issue