From c7b36916e7ada8e9992a22a4d779fd0f26ec7c64 Mon Sep 17 00:00:00 2001 From: Davis Goglin Date: Tue, 15 Mar 2016 12:14:12 -0700 Subject: [PATCH] Avoid importing * --- escpos/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/escpos/config.py b/escpos/config.py index d305395..44bab6f 100644 --- a/escpos/config.py +++ b/escpos/config.py @@ -5,7 +5,7 @@ import appdirs from localconfig import config from . import printer -from .exceptions import * +from . import exceptions class Config(object): @@ -34,7 +34,7 @@ class Config(object): files_read = config.read(config_path) if not files_read: - raise ConfigNotFoundError('Couldn\'t read config at one or more of {config_path}'.format( + raise exceptions.ConfigNotFoundError('Couldn\'t read config at one or more of {config_path}'.format( config_path="\n".join(config_path), )) @@ -45,7 +45,7 @@ class Config(object): self._printer_name = self._printer_config.pop('type').title() if not self._printer_name or not hasattr(printer, self._printer_name): - raise ConfigSyntaxError('Printer type "{printer_name}" is invalid'.format( + raise exceptions.ConfigSyntaxError('Printer type "{printer_name}" is invalid'.format( printer_name=self._printer_name, ))