Fix forgotten import

pull/30/head
Raphaël Vinot 2016-10-27 17:04:23 -04:00
parent 857cd40ea2
commit 81e3ce37af
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import time
import json
from json import JSONEncoder
import os
import warnings
try:
from dateutil.parser import parse
except ImportError:
@ -21,6 +22,7 @@ from .exceptions import PyMISPError, NewEventError, NewAttributeError
# Least dirty way to support python 2 and 3
try:
basestring
unicode
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
except NameError:
basestring = str