From f3c86688a7a94dc1ed6489ebfd5523f7354ad90d Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 5 Oct 2011 12:43:23 +0200 Subject: [PATCH] client-barcode: Simplify decimal.Decimal to Decimal --- client-barcode/freitagskasse.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client-barcode/freitagskasse.py b/client-barcode/freitagskasse.py index 14deba5..7552c48 100644 --- a/client-barcode/freitagskasse.py +++ b/client-barcode/freitagskasse.py @@ -9,7 +9,7 @@ import freitagslib.network as net from freitagslib.commands import BuyCommand, DepositCommand import sys -import decimal +from decimal import Decimal import os import time @@ -22,14 +22,14 @@ CODES = { 'UNDO':('undo',), 'COMMIT':('commit',), - 'DEPOSIT 0.01':('deposit', decimal.Decimal('0.01')), - 'DEPOSIT 0.05':('deposit', decimal.Decimal('0.05')), - 'DEPOSIT 0.10':('deposit', decimal.Decimal('0.10')), - 'DEPOSIT 0.50':('deposit', decimal.Decimal('0.50')), - 'DEPOSIT 1.00':('deposit', decimal.Decimal('1.00')), - 'DEPOSIT 5.00':('deposit', decimal.Decimal('5.00')), - 'DEPOSIT 10.00':('deposit', decimal.Decimal('10.00')), - 'DEPOSIT 50.00':('deposit', decimal.Decimal('50.00')), + 'DEPOSIT 0.01':('deposit', Decimal('0.01')), + 'DEPOSIT 0.05':('deposit', Decimal('0.05')), + 'DEPOSIT 0.10':('deposit', Decimal('0.10')), + 'DEPOSIT 0.50':('deposit', Decimal('0.50')), + 'DEPOSIT 1.00':('deposit', Decimal('1.00')), + 'DEPOSIT 5.00':('deposit', Decimal('5.00')), + 'DEPOSIT 10.00':('deposit', Decimal('10.00')), + 'DEPOSIT 50.00':('deposit', Decimal('50.00')), }