diff options
-rw-r--r-- | .pre-commit-config.yaml | 6 | ||||
-rw-r--r-- | src/jinja2/bccache.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eadb576..3cc2aa3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,17 +2,17 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.20.0 + rev: v2.23.1 hooks: - id: pyupgrade args: ["--py36-plus"] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.5.0 + rev: v2.6.0 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] - repo: https://github.com/psf/black - rev: 21.6b0 + rev: 21.7b0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 diff --git a/src/jinja2/bccache.py b/src/jinja2/bccache.py index ee210ef..3bb61b7 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() |