client-barcode: Simplify decimal.Decimal to Decimal

This commit is contained in:
Sebastian Pipping 2011-10-05 12:43:23 +02:00
parent 61af03c5f9
commit f3c86688a7
1 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@ import freitagslib.network as net
from freitagslib.commands import BuyCommand, DepositCommand from freitagslib.commands import BuyCommand, DepositCommand
import sys import sys
import decimal from decimal import Decimal
import os import os
import time import time
@ -22,14 +22,14 @@ CODES = {
'UNDO':('undo',), 'UNDO':('undo',),
'COMMIT':('commit',), 'COMMIT':('commit',),
'DEPOSIT 0.01':('deposit', decimal.Decimal('0.01')), 'DEPOSIT 0.01':('deposit', Decimal('0.01')),
'DEPOSIT 0.05':('deposit', decimal.Decimal('0.05')), 'DEPOSIT 0.05':('deposit', Decimal('0.05')),
'DEPOSIT 0.10':('deposit', decimal.Decimal('0.10')), 'DEPOSIT 0.10':('deposit', Decimal('0.10')),
'DEPOSIT 0.50':('deposit', decimal.Decimal('0.50')), 'DEPOSIT 0.50':('deposit', Decimal('0.50')),
'DEPOSIT 1.00':('deposit', decimal.Decimal('1.00')), 'DEPOSIT 1.00':('deposit', Decimal('1.00')),
'DEPOSIT 5.00':('deposit', decimal.Decimal('5.00')), 'DEPOSIT 5.00':('deposit', Decimal('5.00')),
'DEPOSIT 10.00':('deposit', decimal.Decimal('10.00')), 'DEPOSIT 10.00':('deposit', Decimal('10.00')),
'DEPOSIT 50.00':('deposit', decimal.Decimal('50.00')), 'DEPOSIT 50.00':('deposit', Decimal('50.00')),
} }