diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 18286e77..6e97fe51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,12 +34,12 @@ repos: - "--py310-plus" - repo: "https://github.com/psf/black-pre-commit-mirror" - rev: "25.11.0" + rev: "26.3.1" hooks: - id: "black" - repo: "https://github.com/pycqa/isort" - rev: "7.0.0" + rev: "9.0.0a3" hooks: - id: "isort" @@ -52,19 +52,19 @@ repos: - "flake8-bugbear==24.12.12" - repo: "https://github.com/editorconfig-checker/editorconfig-checker" - rev: "v3.6.0" + rev: "v3.6.1" hooks: - id: "editorconfig-checker" - repo: "https://github.com/python-jsonschema/check-jsonschema" - rev: "0.35.0" + rev: "0.37.2" hooks: - id: "check-dependabot" - id: "check-github-workflows" - id: "check-readthedocs" - repo: "https://github.com/rhysd/actionlint" - rev: "v1.7.9" + rev: "v1.7.12" hooks: - id: "actionlint" additional_dependencies: diff --git a/feedparser/datetimes/rfc822.py b/feedparser/datetimes/rfc822.py index 48dfd209..649f15e3 100644 --- a/feedparser/datetimes/rfc822.py +++ b/feedparser/datetimes/rfc822.py @@ -133,7 +133,7 @@ def _parse_date_rfc822(date): time_parts = parts[3].split(":") time_parts.extend(("0",) * (3 - len(time_parts))) try: - (hour, minute, second) = (int(i) for i in time_parts) + hour, minute, second = (int(i) for i in time_parts) except ValueError: return None