Skip to content

Commit 5979ed9

Browse files
committed
Use urleconde from a library that works with python 2.7 and 3
1 parent 3eebf6e commit 5979ed9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

01-Login/server.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
"""Python Flask WebApp Auth0 integration example
22
"""
33
from functools import wraps
4-
import six
5-
if six.PY3:
6-
from urllib.parse import urlencode
7-
else:
8-
from urllib import urlencode
4+
from six.moves.urllib.parse import urlencode
95
from os import environ as env
106
from dotenv import load_dotenv, find_dotenv
117
from flask import Flask

0 commit comments

Comments
 (0)