Skip to content

Commit 53e284d

Browse files
committed
Fix import
1 parent dc23194 commit 53e284d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flask_cors/extension.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"""
1111
from flask import request
1212
from .core import *
13-
from urllib.parse import unquote_plus
13+
try:
14+
from urllib.parse import unquote_plus
15+
except ImportError:
16+
from urllib import unquote_plus
17+
1418
LOG = logging.getLogger(__name__)
1519

1620
class CORS(object):

0 commit comments

Comments
 (0)