Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-38536: Removes trailing space in formatted currency #16864
Conversation
This comment has been minimized.
This comment has been minimized.
the-knights-who-say-ni
commented
Oct 20, 2019
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: @Sanjo, @harsh04081997 This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
@@ -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] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@Sanjo Don't forget sign cla |
This comment has been minimized.
This comment has been minimized.
CLA has been signed and https://check-python-cla.herokuapp.com/ also gave back success. |
This comment has been minimized.
This comment has been minimized.
Thanks for fixing this bug. Can you please write the news entry. |
This comment has been minimized.
This comment has been minimized.
I don't know if write the example is a good improve. but LGTM :-) |
This comment has been minimized.
This comment has been minimized.
Just FYI, the CLA has been signed by me. The bot seems to have some quirk with removing the label. Let me know if there is anything else necessary from my side for this pull request to be merged. |
This comment has been minimized.
This comment has been minimized.
We check CLA record for everyone who made commit to the PR, not just the person who opened the PR. The code seems to be committed by user "A A", and perhaps "A A" has not signed CLA. Either have A A sign the CLA (and create bpo account) or modify this PR so it only contains your own commit. |
This comment has been minimized.
This comment has been minimized.
@Mariatta I have fixed the commit to contain the proper author and committer. There was just some configuration for Git missing on my newly setup computer. Best regards. |
This comment has been minimized.
This comment has been minimized.
Have you tried all locale on Ubuntu and Windows? |
This comment has been minimized.
This comment has been minimized.
@Sanjo, please address @methane's questions. Thank you! |
This comment has been minimized.
This comment has been minimized.
No, I have not tried the all locale on Ubuntu and Windows.
The output on Windows 10 has no trailing space. |
Misc/NEWS.d/next/Library/2019-10-21-20-24-51.bpo-38536.beZ0Sk.rst
Outdated
Show resolved
Hide resolved
Co-Authored-By: Inada Naoki <songofacandy@gmail.com>
e96d954
into
python:master
ghost commentedOct 20, 2019
•
edited by bedevere-bot
with international=True and symbol following value.
Validated that Ubuntu was affected
and Windows 10 was not affected.
Fix considers both cases.
https://bugs.python.org/issue38536