projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup.
[python_utils.git]
/
type
/
money.py
diff --git
a/type/money.py
b/type/money.py
index c77a9389391201c47528bcc1f87bbf7e79134e02..290c2c86f91a7a6da652b21e670d2579c51ba6c0 100644
(file)
--- a/
type/money.py
+++ b/
type/money.py
@@
-17,7
+17,7
@@
class Money(object):
def __init__ (
self,
def __init__ (
self,
- amount: Decimal = Decimal("0
.0
"),
+ amount: Decimal = Decimal("0"),
currency: str = 'USD',
*,
strict_mode = False
currency: str = 'USD',
*,
strict_mode = False
@@
-211,7
+211,7
@@
class Money(object):
amount = Decimal(chunk)
elif Money.CURRENCY_RE.match(chunk) is not None:
currency = chunk
amount = Decimal(chunk)
elif Money.CURRENCY_RE.match(chunk) is not None:
currency = chunk
- except:
+ except
Exception
:
pass
if amount is not None and currency is not None:
return (amount, currency)
pass
if amount is not None and currency is not None:
return (amount, currency)