Bump recommended python3 version

pull/30/head
Raphaël Vinot 2016-11-17 17:29:54 +01:00
parent 35a4dd52bc
commit 419897aba0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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