]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
apply pyupgrade 1504/head
authorDavid Lord <davidism@gmail.com>
Mon, 4 Oct 2021 20:22:49 +0000 (13:22 -0700)
committerDavid Lord <davidism@gmail.com>
Mon, 4 Oct 2021 20:22:49 +0000 (13:22 -0700)
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()