Remove empty comment lines
Remove hashtags solely used for structuring. Related #2273
This commit is contained in:
parent
244d0ee88a
commit
5a63e44d58
|
@ -38,10 +38,6 @@ def strhex(d):
|
|||
return hexlify(d).decode("ascii").upper()
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
print_lock = Lock()
|
||||
|
||||
|
||||
|
@ -164,11 +160,6 @@ def _open(args):
|
|||
return handle
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def _parse_arguments():
|
||||
arg_parser = argparse.ArgumentParser()
|
||||
arg_parser.add_argument("--history", help="history file (default ~/.hidconsole-history)")
|
||||
|
|
|
@ -83,10 +83,6 @@ def product_information(usb_id: int | str) -> dict:
|
|||
return {}
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
_SHORT_MESSAGE_SIZE = 7
|
||||
_LONG_MESSAGE_SIZE = 20
|
||||
_MEDIUM_MESSAGE_SIZE = 15
|
||||
|
@ -112,10 +108,6 @@ _DEVICE_REQUEST_TIMEOUT = DEFAULT_TIMEOUT
|
|||
# when pinging, be extra patient (no longer)
|
||||
_PING_TIMEOUT = DEFAULT_TIMEOUT
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def match(record, bus_id, vendor_id, product_id):
|
||||
return (
|
||||
|
@ -163,11 +155,6 @@ def notify_on_receivers_glib(callback):
|
|||
return hidapi.monitor_glib(callback, filter)
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def open_path(path):
|
||||
"""Checks if the given Linux device path points to the right UR device.
|
||||
|
||||
|
@ -311,11 +298,6 @@ def _read(handle, timeout):
|
|||
return report_id, devnumber, data[2:]
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def _skip_incoming(handle, ihandle, notifications_hook):
|
||||
"""Read anything already in the input buffer.
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ GESTURE = NamedInts(
|
|||
TopEdgeSwipe1Finger=63,
|
||||
LeftEdgeSwipe1Finger2=64, # task HorzScrollNoRepeatSet
|
||||
RightEdgeSwipe1Finger2=65, # task 122 ??
|
||||
BottomEdgeSwipe1Finger2=66, #
|
||||
BottomEdgeSwipe1Finger2=66,
|
||||
TopEdgeSwipe1Finger2=67, # task 121 ??
|
||||
LeftEdgeSwipe2Finger=70,
|
||||
RightEdgeSwipe2Finger=71,
|
||||
|
|
|
@ -1775,10 +1775,6 @@ SETTINGS = [
|
|||
ADCPower,
|
||||
]
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def check_feature(device, sclass):
|
||||
if sclass.feature not in device.features:
|
||||
|
|
|
@ -31,10 +31,6 @@ from solaar import NAME
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def _create_parser():
|
||||
parser = _argparse.ArgumentParser(
|
||||
|
|
|
@ -41,10 +41,6 @@ from solaar import __version__
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
def _require(module, os_package, gi=None, gi_package=None, gi_version=None):
|
||||
try:
|
||||
|
|
|
@ -27,10 +27,6 @@ try:
|
|||
except ImportError:
|
||||
from queue import Queue as _Queue
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
class TaskRunner(_Thread):
|
||||
def __init__(self, name):
|
||||
|
|
|
@ -23,10 +23,6 @@ from solaar import NAME
|
|||
from solaar import __version__
|
||||
from solaar.i18n import _
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
_dialog = None
|
||||
|
||||
|
||||
|
|
|
@ -69,10 +69,6 @@ def error_dialog(reason, object):
|
|||
GLib.idle_add(_error_dialog, reason, object)
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
_task_runner = None
|
||||
|
||||
|
||||
|
|
|
@ -598,10 +598,6 @@ class HeteroKeyControl(Gtk.HBox, Control):
|
|||
_write_async(self.sbox.setting, new_state, self.sbox)
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
_allowables_icons = {True: "changes-allow", False: "changes-prevent", _SENSITIVITY_IGNORE: "dialog-error"}
|
||||
_allowables_tooltips = {
|
||||
True: _("Changes allowed"),
|
||||
|
|
|
@ -25,9 +25,6 @@ from . import icons as _icons
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
try:
|
||||
import gi
|
||||
|
|
Loading…
Reference in New Issue