mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-38536: locale: Remove trailing space in formatted currency (GH-16864)
This commit is contained in:
parent
d8ef64422a
commit
e96d954527
3 changed files with 5 additions and 2 deletions
|
@ -279,6 +279,8 @@ def currency(val, symbol=True, grouping=False, international=False):
|
|||
if precedes:
|
||||
s = smb + (separated and ' ' or '') + s
|
||||
else:
|
||||
if international and smb[-1] == ' ':
|
||||
smb = smb[:-1]
|
||||
s = s + (separated and ' ' or '') + smb
|
||||
|
||||
sign_pos = conv[val<0 and 'n_sign_posn' or 'p_sign_posn']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue