Merge pull request #191 from fredj/pylint

Fix various errors found by pylint
This commit is contained in:
tobi-wan-kenobi 2017-10-17 20:17:21 +02:00 committed by GitHub
commit 863f87a570
30 changed files with 77 additions and 95 deletions

View file

@ -1,7 +1,6 @@
"""Core application engine""" """Core application engine"""
import os import os
import time
import pkgutil import pkgutil
import logging import logging
import importlib import importlib

View file

@ -24,7 +24,6 @@ import json
import time import time
try: try:
import requests import requests
from requests.exceptions import RequestException
except ImportError: except ImportError:
pass pass

View file

@ -6,8 +6,6 @@ Requires the following executable:
* gpmdp-remote * gpmdp-remote
""" """
import string
import bumblebee.util import bumblebee.util
import bumblebee.input import bumblebee.input
import bumblebee.output import bumblebee.output

View file

@ -10,10 +10,6 @@ Parameters:
* mocp.format: Format string for the song information. Tag values can be put in curly brackets (i.e. {artist}) * 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.util
import bumblebee.input import bumblebee.input
import bumblebee.output import bumblebee.output

View file

@ -45,4 +45,3 @@ class Module(bumblebee.engine.Module):
self._ip = get(self.address).text.rstrip() self._ip = get(self.address).text.rstrip()
except Exception: except Exception:
self._ip = "No Connection" self._ip = "No Connection"

View file

@ -6,10 +6,6 @@ Requires the following executable:
* xrandr * xrandr
""" """
import os
import re
import sys
import bumblebee.util import bumblebee.util
import bumblebee.input import bumblebee.input
import bumblebee.output import bumblebee.output

View file

@ -18,7 +18,6 @@ import bumblebee.engine
import bumblebee.util import bumblebee.util
import requests import requests
from requests.exceptions import RequestException
class Module(bumblebee.engine.Module): class Module(bumblebee.engine.Module):
def __init__(self, engine, config): def __init__(self, engine, config):

View file

@ -6,8 +6,6 @@ Parameters:
* todo.file: File to read TODOs from (defaults to ~/Documents/todo.txt) * todo.file: File to read TODOs from (defaults to ~/Documents/todo.txt)
""" """
import platform
import bumblebee.input import bumblebee.input
import bumblebee.output import bumblebee.output
import bumblebee.engine import bumblebee.engine

View file

@ -8,7 +8,6 @@ Parameters:
* traffic.showname: If set to False, hide network interface name (defaults to True) * traffic.showname: If set to False, hide network interface name (defaults to True)
""" """
import re
import psutil import psutil
import netifaces import netifaces

View file

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import shlex import shlex
import datetime
import logging import logging
import subprocess import subprocess