Fix documentation of get_currency
This commit is contained in:
parent
74b99c4a8d
commit
f6ee441d08
1 changed files with 7 additions and 7 deletions
|
|
@ -466,19 +466,19 @@ class Currency(object):
|
|||
def get_currency(klass, text):
|
||||
u"""
|
||||
>>> Currency.get_currency(u'42')
|
||||
0
|
||||
None
|
||||
>>> Currency.get_currency(u'42 €')
|
||||
1
|
||||
u'EUR'
|
||||
>>> Currency.get_currency(u'$42')
|
||||
3
|
||||
u'USD'
|
||||
>>> Currency.get_currency(u'42.000,00€')
|
||||
1
|
||||
u'EUR'
|
||||
>>> Currency.get_currency(u'$42 USD')
|
||||
3
|
||||
u'USD'
|
||||
>>> Currency.get_currency(u'%42 USD')
|
||||
3
|
||||
u'USD'
|
||||
>>> Currency.get_currency(u'US1D')
|
||||
0
|
||||
None
|
||||
"""
|
||||
curtexts = klass.EXTRACTOR.sub(' ', text.upper()).split()
|
||||
for curtext in curtexts:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue