Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary calls of del #2354

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/hidapi/hidapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"hidpp_long",
],
)
del namedtuple

# Global handle to hidapi
_hidapi = None
Expand Down
1 change: 0 additions & 1 deletion lib/hidapi/hidconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def strhex(d):
#

print_lock = Lock()
del Lock


def _print(marker, data, scroll=False):
Expand Down
1 change: 0 additions & 1 deletion lib/hidapi/udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"hidpp_long",
],
)
del namedtuple

#
# exposed API
Expand Down
1 change: 0 additions & 1 deletion lib/logitech_receiver/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ def make_notification(report_id, devnumber, data):
self.address,
_strhex(self.data),
)
del namedtuple

#
#
Expand Down
3 changes: 0 additions & 3 deletions lib/logitech_receiver/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,3 @@ def __getattr__(self, k):

def BATTERY_OK(status):
return status not in (BATTERY_STATUS.invalid_battery, BATTERY_STATUS.thermal_error)


del namedtuple
3 changes: 0 additions & 3 deletions lib/solaar/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@ def _find_locale_path(lc_domain):
if mo_files:
return _path.join(location, "locale")

# del _path


try:
locale.setlocale(locale.LC_ALL, "")
except Exception:
pass

language, encoding = locale.getlocale()
del locale

_LOCALE_DOMAIN = _NAME.lower()
path = _find_locale_path(_LOCALE_DOMAIN)
Expand Down
Loading