From b60bd99e79a7ea6558ccdb8b202cf39246a5320a Mon Sep 17 00:00:00 2001 From: Ethan Ward Date: Mon, 18 Jul 2016 15:45:11 -0500 Subject: [PATCH] Fix unused imports (#296) --- mycroft/client/speech/mic.py | 1 - mycroft/skills/main.py | 2 +- mycroft/skills/media/__init__.py | 2 -- mycroft/skills/stock/__init__.py | 2 +- mycroft/skills/volume/__init__.py | 2 +- mycroft/skills/weather/__init__.py | 2 +- test/skills/wolfram_alpha/__init__.py | 1 - 7 files changed, 4 insertions(+), 8 deletions(-) diff --git a/mycroft/client/speech/mic.py b/mycroft/client/speech/mic.py index e88da63c8a..c1631ebfa1 100644 --- a/mycroft/client/speech/mic.py +++ b/mycroft/client/speech/mic.py @@ -24,7 +24,6 @@ import pyaudio from speech_recognition import ( Microphone, AudioSource, - WaitTimeoutError, AudioData ) import speech_recognition diff --git a/mycroft/skills/main.py b/mycroft/skills/main.py index 3c9898c6ac..83fb20fdb3 100644 --- a/mycroft/skills/main.py +++ b/mycroft/skills/main.py @@ -17,7 +17,7 @@ import json -from os.path import join, expanduser, exists +from os.path import expanduser, exists from mycroft.configuration import ConfigurationManager from mycroft.messagebus.client.ws import WebsocketClient diff --git a/mycroft/skills/media/__init__.py b/mycroft/skills/media/__init__.py index 307bee2011..1755053e6d 100644 --- a/mycroft/skills/media/__init__.py +++ b/mycroft/skills/media/__init__.py @@ -1,13 +1,11 @@ from os.path import join, dirname from adapt.intent import IntentBuilder -from mycroft.skills import time_rules from mycroft.skills.core import MycroftSkill from mycroft.messagebus.message import Message from mycroft.configuration import ConfigurationManager from mycroft.util.log import getLogger -import mycroft.skills.media.mopidy logger = getLogger(__name__) diff --git a/mycroft/skills/stock/__init__.py b/mycroft/skills/stock/__init__.py index 04c151742b..dc4cac52fe 100644 --- a/mycroft/skills/stock/__init__.py +++ b/mycroft/skills/stock/__init__.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with Mycroft Core. If not, see . -from os.path import dirname, join +from os.path import dirname import time import requests import xml.etree.ElementTree as ET diff --git a/mycroft/skills/volume/__init__.py b/mycroft/skills/volume/__init__.py index b97c3a3f33..bd4e28ae86 100644 --- a/mycroft/skills/volume/__init__.py +++ b/mycroft/skills/volume/__init__.py @@ -18,7 +18,7 @@ import time from alsaaudio import Mixer -from os.path import dirname, join +from os.path import dirname from adapt.intent import IntentBuilder from mycroft.skills.core import MycroftSkill diff --git a/mycroft/skills/weather/__init__.py b/mycroft/skills/weather/__init__.py index ffa4646a67..9aaf8a95d6 100644 --- a/mycroft/skills/weather/__init__.py +++ b/mycroft/skills/weather/__init__.py @@ -17,7 +17,7 @@ from adapt.intent import IntentBuilder -from os.path import dirname, join +from os.path import dirname from pyowm.exceptions.api_call_error import APICallError from multi_key_dict import multi_key_dict diff --git a/test/skills/wolfram_alpha/__init__.py b/test/skills/wolfram_alpha/__init__.py index 32a11f55c8..9bcea35f9e 100644 --- a/test/skills/wolfram_alpha/__init__.py +++ b/test/skills/wolfram_alpha/__init__.py @@ -1,7 +1,6 @@ import unittest import wolframalpha from StringIO import StringIO -from xml.etree import ElementTree as etree from mycroft.skills.wolfram_alpha import WolframAlphaSkill from mycroft.util.log import getLogger