mirror of https://github.com/MISP/PyMISP
add user management and examples
commit
dbba8ed0f9
|
@ -11,10 +11,10 @@ import re
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
try:
|
try:
|
||||||
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from urlparse import urljoin
|
from urlparse import urljoin
|
||||||
|
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.3")
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ from .mispevent import MISPEvent, MISPAttribute, EncodeUpdate
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
|
|
@ -311,8 +311,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"info",
|
"info"
|
||||||
"Attribute"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue