]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
[pre-commit.ci] auto fixes from pre-commit.com hooks 1480/head
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Mon, 2 Aug 2021 18:54:02 +0000 (18:54 +0000)
committerpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Mon, 2 Aug 2021 18:54:03 +0000 (18:54 +0000)
for more information, see https://pre-commit.ci

src/jinja2/bccache.py

index ee210ef00d44193365ae480209df00ee92d3db9f..3bb61b7c34cea1ae0ea7a5ae3aa33d3628f687c9 100644 (file)
@@ -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()