~edwargix/git.sr.ht

530f4839a1a62ad330b3981f68b6aae9ecc62845 — delthas 2 years ago 9fb34d9
Fix obsolete Jinja2 imports

jinja2.Markup was moved to markupsafe.Markup.

See: https://github.com/pallets/jinja/issues/1438
2 files changed, 3 insertions(+), 3 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/git.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +2 -2
@@ 14,8 14,8 @@ from gitsrht.git import diffstat, get_log, diff_for_commit, strip_pgp_signature
from gitsrht.rss import generate_feed
from gitsrht.types import Artifact, User
from io import BytesIO
from jinja2 import Markup
from jinja2.utils import url_quote, escape
from markupsafe import Markup, escape
from jinja2.utils import url_quote
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import guess_lexer, guess_lexer_for_filename, TextLexer

M gitsrht/git.py => gitsrht/git.py +1 -1
@@ 1,7 1,7 @@
from collections import deque
from datetime import datetime, timedelta, timezone
from pygit2 import Repository as GitRepository, Tag
from jinja2 import Markup, escape
from markupsafe import Markup, escape
from stat import filemode
import pygit2
import json, re