Skip to content

Commit

Permalink
pyupgrade upgrade v3.11.0 -> v3.13.0 (#8535)
Browse files Browse the repository at this point in the history
* pyupgrade upgrade v3.11.0 -> v3.13.0

* pre-commit auto fixes
  • Loading branch information
Nusnus authored and Justin Oberdorf committed Sep 29, 2023
1 parent d763bd2 commit 2f409b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.11.0
rev: v3.13.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand Down
2 changes: 1 addition & 1 deletion celery/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def remove_if_stale(self):

try:
os.kill(pid, 0)
except os.error as exc:
except OSError as exc:
if exc.errno == errno.ESRCH or exc.errno == errno.EPERM:
print('Stale pidfile exists - Removing it.', file=sys.stderr)
self.remove()
Expand Down

0 comments on commit 2f409b9

Please sign in to comment.