Drop unnecessary __future__ imports

These are all active by default on all recent Python versions.
This commit is contained in:
Hugo Osvaldo Barrera 2021-10-30 19:36:59 +02:00 committed by Peter F. Patel-Schneider
parent b96d16672b
commit 22bf4fafff
42 changed files with 0 additions and 83 deletions

View File

@ -17,8 +17,6 @@
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""Generic Human Interface Device API.""" """Generic Human Interface Device API."""
from __future__ import absolute_import, division, print_function, unicode_literals
from hidapi.udev import close # noqa: F401 from hidapi.udev import close # noqa: F401
from hidapi.udev import enumerate # noqa: F401 from hidapi.udev import enumerate # noqa: F401
from hidapi.udev import find_paired_node # noqa: F401 from hidapi.udev import find_paired_node # noqa: F401

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import os import os
import sys import sys
import time import time

View File

@ -24,8 +24,6 @@ The docstrings are mostly copied from the hidapi API header, with changes where
necessary. necessary.
""" """
from __future__ import absolute_import, division, print_function, unicode_literals
import errno as _errno import errno as _errno
import os as _os import os as _os

View File

@ -28,8 +28,6 @@ http://julien.danjou.info/blog/2012/logitech-k750-linux-support
http://6xq.net/git/lars/lshidpp.git/plain/doc/ http://6xq.net/git/lars/lshidpp.git/plain/doc/
""" """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
from . import listener, status # noqa: F401 from . import listener, status # noqa: F401

View File

@ -19,8 +19,6 @@
# Base low-level functions used by the API proper. # Base low-level functions used by the API proper.
# Unlikely to be used directly unless you're expanding the API. # Unlikely to be used directly unless you're expanding the API.
from __future__ import absolute_import, division, print_function, unicode_literals
import threading as _threading import threading as _threading
from collections import namedtuple from collections import namedtuple

View File

@ -26,8 +26,6 @@
# USB ids of Logitech wireless receivers. # USB ids of Logitech wireless receivers.
# Only receivers supporting the HID++ protocol can go in here. # Only receivers supporting the HID++ protocol can go in here.
from __future__ import absolute_import, division, print_function, unicode_literals
from .descriptors import DEVICES as _DEVICES from .descriptors import DEVICES as _DEVICES
from .i18n import _ from .i18n import _

View File

@ -18,8 +18,6 @@
# Some common functions and types. # Some common functions and types.
from __future__ import absolute_import, division, print_function, unicode_literals
from binascii import hexlify as _hexlify from binascii import hexlify as _hexlify
from collections import namedtuple from collections import namedtuple
from struct import pack, unpack from struct import pack, unpack

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import namedtuple from collections import namedtuple
from .common import NamedInts as _NamedInts from .common import NamedInts as _NamedInts

View File

@ -1,5 +1,3 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import errno as _errno import errno as _errno
from logging import INFO as _INFO from logging import INFO as _INFO

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import getLogger # , DEBUG as _DEBUG from logging import getLogger # , DEBUG as _DEBUG
from .common import BATTERY_APPROX as _BATTERY_APPROX from .common import BATTERY_APPROX as _BATTERY_APPROX

View File

@ -18,8 +18,6 @@
# Logitech Unifying Receiver API. # Logitech Unifying Receiver API.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import ERROR as _ERROR from logging import ERROR as _ERROR
from logging import INFO as _INFO from logging import INFO as _INFO

View File

@ -18,8 +18,6 @@
# Translation support for the Logitech receivers library # Translation support for the Logitech receivers library
from __future__ import absolute_import, division, print_function, unicode_literals
import gettext as _gettext import gettext as _gettext
try: try:

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import threading as _threading import threading as _threading
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG

View File

@ -19,8 +19,6 @@
# Handles incoming events from the receiver/devices, updating the related # Handles incoming events from the receiver/devices, updating the related
# status object as appropriate. # status object as appropriate.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import INFO as _INFO from logging import INFO as _INFO
from logging import getLogger from logging import getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import errno as _errno import errno as _errno
from logging import INFO as _INFO from logging import INFO as _INFO

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import math import math
from copy import copy as _copy from copy import copy as _copy

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import namedtuple from collections import namedtuple
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import INFO as _INFO from logging import INFO as _INFO

View File

@ -19,8 +19,6 @@
# Reprogrammable keys information # Reprogrammable keys information
# Mostly from Logitech documentation, but with some edits for better Lunix compatability # Mostly from Logitech documentation, but with some edits for better Lunix compatability
from __future__ import absolute_import, division, print_function, unicode_literals
from .common import NamedInts as _NamedInts from .common import NamedInts as _NamedInts
# <controls.xml awk -F\" '/<Control /{sub(/^LD_FINFO_(CTRLID_)?/, "", $2);printf("\t%s=0x%04X,\n", $2, $4)}' | sort -t= -k2 # <controls.xml awk -F\" '/<Control /{sub(/^LD_FINFO_(CTRLID_)?/, "", $2);printf("\t%s=0x%04X,\n", $2, $4)}' | sort -t= -k2

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import INFO as _INFO from logging import INFO as _INFO
from logging import getLogger from logging import getLogger

View File

@ -16,7 +16,5 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
__version__ = '1.0.7' __version__ = '1.0.7'
NAME = 'Solaar' NAME = 'Solaar'

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import argparse as _argparse import argparse as _argparse
import sys as _sys import sys as _sys

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logitech_receiver import settings as _settings from logitech_receiver import settings as _settings
from logitech_receiver import settings_templates as _settings_templates from logitech_receiver import settings_templates as _settings_templates
from solaar import configuration as _configuration from solaar import configuration as _configuration

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from time import time as _timestamp from time import time as _timestamp
from logitech_receiver import base as _base from logitech_receiver import base as _base

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logitech_receiver import base as _base from logitech_receiver import base as _base
from logitech_receiver import hidpp10 as _hidpp10 from logitech_receiver import hidpp10 as _hidpp10
from logitech_receiver.common import strhex as _strhex from logitech_receiver.common import strhex as _strhex

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logitech_receiver import hidpp10 as _hidpp10 from logitech_receiver import hidpp10 as _hidpp10
from logitech_receiver import hidpp20 as _hidpp20 from logitech_receiver import hidpp20 as _hidpp20
from logitech_receiver import receiver as _receiver from logitech_receiver import receiver as _receiver

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
def run(receivers, args, find_receiver, find_device): def run(receivers, args, find_receiver, find_device):
assert receivers assert receivers

View File

@ -18,8 +18,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import importlib import importlib
import os.path import os.path

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import gettext as _gettext import gettext as _gettext
import locale import locale

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import time import time
from collections import namedtuple from collections import namedtuple

View File

@ -18,8 +18,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import getLogger from logging import getLogger
from threading import Thread as _Thread from threading import Thread as _Thread

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import getLogger from logging import getLogger

View File

@ -17,8 +17,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from gi.repository import Gtk from gi.repository import Gtk
from solaar import NAME, __version__ from solaar import NAME, __version__
from solaar.i18n import _ from solaar.i18n import _

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from gi.repository import Gdk, Gtk from gi.repository import Gdk, Gtk
from solaar.i18n import _ from solaar.i18n import _

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from threading import Timer as _Timer from threading import Timer as _Timer
from gi.repository import Gdk, GLib, Gtk from gi.repository import Gdk, GLib, Gtk

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import defaultdict from collections import defaultdict
from contextlib import contextmanager as contextlib_contextmanager from contextlib import contextmanager as contextlib_contextmanager
from logging import getLogger from logging import getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import getLogger from logging import getLogger

View File

@ -18,8 +18,6 @@
# Optional desktop notifications. # Optional desktop notifications.
from __future__ import absolute_import, division, print_function, unicode_literals
from solaar.i18n import _ from solaar.i18n import _
# #

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import getLogger from logging import getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import os import os
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import DEBUG as _DEBUG from logging import DEBUG as _DEBUG
from logging import getLogger from logging import getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
from logging import INFO as _INFO from logging import INFO as _INFO
from logging import getLogger from logging import getLogger

View File

@ -1,7 +1,6 @@
# #
# #
# #
from __future__ import absolute_import, division, print_function, unicode_literals
import sys import sys