Skip to content

Commit

Permalink
Remove old urllib imports (#1477)
Browse files Browse the repository at this point in the history
All supported Python versions have the `urllib.parse` and
`urllib.request` modules.

Co-authored-by: Jakub Klinkovský <[email protected]>
  • Loading branch information
lahwaacz and lahwaacz committed Jun 22, 2024
1 parent f43b779 commit 0ffd12a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions voila/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@

from .voila_identity_provider import VoilaLoginHandler

try:
from urllib.parse import urljoin
from urllib.request import pathname2url
except ImportError:
from urllib import pathname2url

from urlparse import urljoin
from urllib.parse import urljoin
from urllib.request import pathname2url

import jinja2
import tornado.ioloop
Expand Down

0 comments on commit 0ffd12a

Please sign in to comment.