From 9655ec382007bde37bead8ed99d4b4b30f6c2f6e Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 28 Apr 2018 14:12:48 +0200 Subject: [PATCH] [FIX] hw_*: Don't import twice --- hw_customer_display/controllers/main.py | 6 ------ hw_telium_payment_terminal/controllers/main.py | 6 ------ 2 files changed, 12 deletions(-) diff --git a/hw_customer_display/controllers/main.py b/hw_customer_display/controllers/main.py index f3bc5c95..f6e4358b 100644 --- a/hw_customer_display/controllers/main.py +++ b/hw_customer_display/controllers/main.py @@ -39,12 +39,6 @@ except (ImportError, IOError) as err: logger.debug(err) -try: - from unidecode import unidecode -except ImportError: - logger.info('`unidecode` Python pacakge not found') - - class CustomerDisplayDriver(Thread): def __init__(self): Thread.__init__(self) diff --git a/hw_telium_payment_terminal/controllers/main.py b/hw_telium_payment_terminal/controllers/main.py index 27ae84cc..d40232b0 100644 --- a/hw_telium_payment_terminal/controllers/main.py +++ b/hw_telium_payment_terminal/controllers/main.py @@ -40,12 +40,6 @@ except (ImportError, IOError) as err: logger.debug(err) -try: - import pycountry -except ImportError: - _logger.info('`pycountry` Python package not found') - - class TeliumPaymentTerminalDriver(Thread): def __init__(self): Thread.__init__(self)