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.
"""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 enumerate # 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.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import sys
import time

View File

@ -24,8 +24,6 @@ The docstrings are mostly copied from the hidapi API header, with changes where
necessary.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import errno as _errno
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/
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from . import listener, status # noqa: F401

View File

@ -19,8 +19,6 @@
# Base low-level functions used by the API proper.
# 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
from collections import namedtuple

View File

@ -26,8 +26,6 @@
# USB ids of Logitech wireless receivers.
# 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 .i18n import _

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 .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
from logging import INFO as _INFO

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 .common import BATTERY_APPROX as _BATTERY_APPROX

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 logging import DEBUG as _DEBUG
from logging import INFO as _INFO

View File

@ -19,8 +19,6 @@
# Reprogrammable keys information
# 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
# <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.,
## 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 INFO as _INFO
from logging import getLogger

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 sys as _sys

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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_templates as _settings_templates
from solaar import configuration as _configuration

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 logitech_receiver import base as _base

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 hidpp10 as _hidpp10
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.,
## 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 hidpp20 as _hidpp20
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.,
## 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):
assert receivers

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 locale

View File

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

View File

@ -18,8 +18,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger
from threading import Thread as _Thread

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger

View File

@ -17,8 +17,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 solaar import NAME, __version__
from solaar.i18n import _

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 solaar.i18n import _

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 gi.repository import Gdk, GLib, Gtk

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 contextlib import contextmanager as contextlib_contextmanager
from logging import getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger

View File

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

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger

View File

@ -16,8 +16,6 @@
## with this program; if not, write to the Free Software Foundation, Inc.,
## 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 getLogger

View File

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