diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-07-05 00:56:59 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-07-19 22:52:33 +0200 |
commit | becb67d7bf5e653d5646e974f2976b0ef5d63570 (patch) | |
tree | 2a6a6f2860e13c65eecf9653f6bb2dc24e3dfcf9 | |
parent | repoman: Updates for a release (diff) | |
download | portage-becb67d7bf5e653d5646e974f2976b0ef5d63570.tar.gz portage-becb67d7bf5e653d5646e974f2976b0ef5d63570.tar.bz2 portage-becb67d7bf5e653d5646e974f2976b0ef5d63570.zip |
localization: Replace deprecated locale.format() with format_string()
-rw-r--r-- | pym/portage/localization.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/localization.py b/pym/portage/localization.py index 90202fb58..b215b9cba 100644 --- a/pym/portage/localization.py +++ b/pym/portage/localization.py @@ -39,7 +39,7 @@ def localized_size(num_bytes): # always round up, so that small files don't end up as '0 KiB' num_kib = math.ceil(num_bytes / 1024) try: - formatted_num = locale.format('%d', num_kib, grouping=True) + formatted_num = locale.format_string('%d', num_kib, grouping=True) except UnicodeDecodeError: # failure to decode locale data formatted_num = str(num_kib) |