remove empty line; fix doctest
This commit is contained in:
parent
a552ba224c
commit
191484c2e5
2 changed files with 1 additions and 2 deletions
|
@ -56,7 +56,6 @@ def formatNumber(num, type='decimal', lang='de', pattern=u'#,##0.00;-#,##0.00'):
|
|||
return fmt.format(num, pattern=pattern)
|
||||
|
||||
|
||||
|
||||
def toStr(value, encoding='UTF-8'):
|
||||
if isinstance(value, unicode):
|
||||
return value.encode(encoding)
|
||||
|
|
|
@ -14,4 +14,4 @@ Basic Formatting Functions
|
|||
u'21.08.2006 17:37:13'
|
||||
|
||||
>>> format.formatNumber(17.2)
|
||||
u'17,2'
|
||||
u'17,20'
|
||||
|
|
Loading…
Add table
Reference in a new issue