mirror of https://github.com/MISP/PyMISP
Bump recommended python3 version
parent
35a4dd52bc
commit
419897aba0
|
@ -15,7 +15,7 @@ try:
|
||||||
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")
|
warnings.warn("You're using python 2, it is strongly recommended to use python >=3.4")
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ 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:
|
||||||
basestring
|
basestring
|
||||||
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.4")
|
||||||
except NameError:
|
except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ from .exceptions import PyMISPError, NewEventError, NewAttributeError
|
||||||
try:
|
try:
|
||||||
basestring
|
basestring
|
||||||
unicode
|
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.4")
|
||||||
except NameError:
|
except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
unicode = str
|
unicode = str
|
||||||
|
|
Loading…
Reference in New Issue