diff options
author | David Lord <davidism@gmail.com> | 2021-08-03 06:12:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 06:12:27 -0700 |
commit | 44f3d2142ca74abb7d43162c7e36ff6777898810 (patch) | |
tree | 2734a230f3c4c6304b7fa2d9564996d2c9ffd6eb | |
parent | c6334b6cec6faf9075f785007130293ddae8c52a (diff) | |
parent | 1b4c25991baec2e533dae493e8109e60950e537c (diff) | |
download | jinja2-44f3d2142ca74abb7d43162c7e36ff6777898810.tar.gz |
Merge pull request #1480 from pallets/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
-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() |