From: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Aug 2021 18:54:02 +0000 (+0000) Subject: [pre-commit.ci] auto fixes from pre-commit.com hooks X-Git-Tag: 3.1.0~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1480%2Fhead;p=thirdparty%2Fjinja.git [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- diff --git a/src/jinja2/bccache.py b/src/jinja2/bccache.py index ee210ef0..3bb61b7c 100644 --- a/src/jinja2/bccache.py +++ b/src/jinja2/bccache.py @@ -154,7 +154,7 @@ class BytecodeCache: hash = sha1(name.encode("utf-8")) if filename is not None: - hash.update(f"|{filename}".encode("utf-8")) + hash.update(f"|{filename}".encode()) return hash.hexdigest()