From 09a80230f55c6913e86ab38ad20fd8836c42a56d Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Wed, 20 Aug 2014 13:58:42 -0700 Subject: [PATCH] Clean up code --- dotbot/dispatcher.py | 2 +- dotbot/executor/linker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotbot/dispatcher.py b/dotbot/dispatcher.py index 35b0889..5218aa1 100644 --- a/dotbot/dispatcher.py +++ b/dotbot/dispatcher.py @@ -1,5 +1,5 @@ import os -from .executor import * +from .executor import Executor from .messenger import Messenger class Dispatcher(object): diff --git a/dotbot/executor/linker.py b/dotbot/executor/linker.py index bd0b909..60c76b5 100644 --- a/dotbot/executor/linker.py +++ b/dotbot/executor/linker.py @@ -62,7 +62,7 @@ class Linker(Executor): elif not self._exists(link_name) and self._exists(source): try: os.symlink(source, os.path.expanduser(link_name)) - except OSError as e: + except OSError: self._log.warning('Linking failed %s -> %s' % (link_name, source)) else: self._log.lowinfo('Creating link %s -> %s' % (link_name, source))