Skip to content

Commit

Permalink
Merge pull request #684 from homebysix/pyupgrade
Browse files Browse the repository at this point in the history
Apply pyupgrade recommendations to processors
  • Loading branch information
homebysix authored Jan 5, 2025
2 parents bb5fd69 + cecb7b4 commit d24bce0
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ repos:
rev: v3.3.3
hooks:
- id: pylint
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
1 change: 0 additions & 1 deletion BinaryFileVersioner/BinaryFileVersioner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2018-2020 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion Cocktail/CocktailReleasesInfoProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2022 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion Corel/CorelSerializer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2021 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion Corel/CorelURLProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2021 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion FindAndReplace/FindAndReplace.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2016-2020 Elliot Jordan
#
Expand Down
3 changes: 1 addition & 2 deletions GoToMeeting/GoToMeetingURLProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2015-2020 Elliot Jordan
# Based on original processor by Nick Gamewell
Expand Down Expand Up @@ -70,7 +69,7 @@ def get_g2m_info(self, base_url):
meta_path = os.path.join(download_dir, "meta")
try:
os.makedirs(download_dir)
except os.error:
except OSError:
# Directory already exists
pass

Expand Down
1 change: 0 additions & 1 deletion Perforce/PerforceURLProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2021 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion R/RProjectURLProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2022 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion VersionSplitter/VersionSplitter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2015-2020 Elliot Jordan
#
Expand Down
1 change: 0 additions & 1 deletion Zoom/Zoom7zUnarchiver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2010 Per Olofsson
# Updated as draft by Yoann Gini in 2017 to support 7z file format for Zoom
Expand Down
1 change: 0 additions & 1 deletion ezeep/ezeepURLProvider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2021 Elliot Jordan
#
Expand Down
3 changes: 0 additions & 3 deletions test/test_functional.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-

"""test_functional.py.
Functional tests for homebysix-recipes.
"""


import os
import plistlib
import shutil
Expand Down

0 comments on commit d24bce0

Please sign in to comment.