From 6f287267589bbe4e4ca2281e49a1b3ed6772899b Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 13 Oct 2017 17:14:16 +0200 Subject: [PATCH] Fix unused-import errors found by pylint --- bumblebee/engine.py | 1 - bumblebee/modules/currency.py | 1 - bumblebee/modules/gpmdp.py | 2 -- bumblebee/modules/mocp.py | 4 ---- bumblebee/modules/rotation.py | 4 ---- bumblebee/modules/stock.py | 1 - bumblebee/modules/todo.py | 2 -- bumblebee/modules/traffic.py | 1 - bumblebee/util.py | 1 - 9 files changed, 17 deletions(-) diff --git a/bumblebee/engine.py b/bumblebee/engine.py index 98964e0..bcf11d3 100644 --- a/bumblebee/engine.py +++ b/bumblebee/engine.py @@ -1,7 +1,6 @@ """Core application engine""" import os -import time import pkgutil import logging import importlib diff --git a/bumblebee/modules/currency.py b/bumblebee/modules/currency.py index 81d533e..fd0983c 100644 --- a/bumblebee/modules/currency.py +++ b/bumblebee/modules/currency.py @@ -24,7 +24,6 @@ import json import time try: import requests - from requests.exceptions import RequestException except ImportError: pass diff --git a/bumblebee/modules/gpmdp.py b/bumblebee/modules/gpmdp.py index 36988e8..922145f 100644 --- a/bumblebee/modules/gpmdp.py +++ b/bumblebee/modules/gpmdp.py @@ -6,8 +6,6 @@ Requires the following executable: * gpmdp-remote """ -import string - import bumblebee.util import bumblebee.input import bumblebee.output diff --git a/bumblebee/modules/mocp.py b/bumblebee/modules/mocp.py index 7ffe263..3e3f3f0 100644 --- a/bumblebee/modules/mocp.py +++ b/bumblebee/modules/mocp.py @@ -10,10 +10,6 @@ Parameters: * mocp.format: Format string for the song information. Tag values can be put in curly brackets (i.e. {artist}) """ -from collections import defaultdict - -import string - import bumblebee.util import bumblebee.input import bumblebee.output diff --git a/bumblebee/modules/rotation.py b/bumblebee/modules/rotation.py index cec8c10..b03123d 100644 --- a/bumblebee/modules/rotation.py +++ b/bumblebee/modules/rotation.py @@ -6,10 +6,6 @@ Requires the following executable: * xrandr """ -import os -import re -import sys - import bumblebee.util import bumblebee.input import bumblebee.output diff --git a/bumblebee/modules/stock.py b/bumblebee/modules/stock.py index 390c3dd..28b5162 100644 --- a/bumblebee/modules/stock.py +++ b/bumblebee/modules/stock.py @@ -18,7 +18,6 @@ import bumblebee.engine import bumblebee.util import requests -from requests.exceptions import RequestException class Module(bumblebee.engine.Module): def __init__(self, engine, config): diff --git a/bumblebee/modules/todo.py b/bumblebee/modules/todo.py index afa0494..6fa6fca 100644 --- a/bumblebee/modules/todo.py +++ b/bumblebee/modules/todo.py @@ -6,8 +6,6 @@ Parameters: * todo.file: File to read TODOs from (defaults to ~/Documents/todo.txt) """ -import platform - import bumblebee.input import bumblebee.output import bumblebee.engine diff --git a/bumblebee/modules/traffic.py b/bumblebee/modules/traffic.py index 4b8b83f..a87ece5 100644 --- a/bumblebee/modules/traffic.py +++ b/bumblebee/modules/traffic.py @@ -8,7 +8,6 @@ Parameters: * traffic.showname: If set to False, hide network interface name (defaults to True) """ -import re import psutil import netifaces diff --git a/bumblebee/util.py b/bumblebee/util.py index c81d64b..8032032 100644 --- a/bumblebee/util.py +++ b/bumblebee/util.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- import shlex -import datetime import logging import subprocess