Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
* Replace one deprecated import
* Replace Flask-Assets with the Flask-Assets2 fork for Flask 3.0 compatibility
  • Loading branch information
jace committed Oct 16, 2023
1 parent 1691c9f commit db832c3
Show file tree
Hide file tree
Showing 6 changed files with 814 additions and 779 deletions.
5 changes: 2 additions & 3 deletions funnel/views/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from hashlib import blake2b
from os import urandom
from typing import Any
from urllib.parse import unquote, urljoin, urlsplit
from urllib.parse import quote, unquote, urljoin, urlsplit

import brotli
from flask import (
Expand All @@ -31,7 +31,6 @@
from pytz import common_timezones, timezone as pytz_timezone, utc
from werkzeug.exceptions import MethodNotAllowed, NotFound
from werkzeug.routing import BuildError, RequestRedirect
from werkzeug.urls import url_quote

from baseframe import cache, statsd
from coaster.sqlalchemy import RoleMixin
Expand Down Expand Up @@ -153,7 +152,7 @@ def app_url_for(
if old_scheme is not None:
url_adapter.url_scheme = old_scheme
if _anchor:
result += f'#{url_quote(_anchor)}'
result += f'#{quote(_anchor)}'
return result


Expand Down
Loading

0 comments on commit db832c3

Please sign in to comment.