From 7a5810992855511fa8ff4394fd8f388725210968 Mon Sep 17 00:00:00 2001 From: Davis Goglin Date: Wed, 16 Mar 2016 13:47:51 -0700 Subject: [PATCH] Clean up per landscape --- escpos/cli.py | 5 +---- escpos/config.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/escpos/cli.py b/escpos/cli.py index 5fa0d27..5dcda69 100755 --- a/escpos/cli.py +++ b/escpos/cli.py @@ -3,11 +3,8 @@ from __future__ import absolute_import import argparse -import sys -import serial import six -import os -from . import printer, config +from . import config # Used in demo method # Key: The name of escpos function and the argument passed on the CLI. Some diff --git a/escpos/config.py b/escpos/config.py index 2eed0bb..54aa0ea 100644 --- a/escpos/config.py +++ b/escpos/config.py @@ -48,7 +48,7 @@ class Config(object): else: with open(config_path, 'rb') as f: config = yaml.safe_load(f) - except EnvironmentError as e: + except EnvironmentError: raise exceptions.ConfigNotFoundError('Couldn\'t read config at {config_path}'.format( config_path=str(config_path), ))