Skip to content

Commit

Permalink
Remove unnecessary calls of del
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Mar 2, 2024
1 parent 7ef3059 commit ea7dad0
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 10 deletions.
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

0 comments on commit ea7dad0

Please sign in to comment.