From: David Lord Date: Mon, 4 Oct 2021 20:22:49 +0000 (-0700) Subject: apply pyupgrade X-Git-Tag: 3.0.2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad1ebe30f2bfa3367a0c9449bae5586273d608be;p=thirdparty%2Fjinja.git apply pyupgrade --- 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()