diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-24 06:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 06:05:00 (GMT) |
commit | 2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch) | |
tree | 0c42af143f2ab71bce5865aa72056330fcc510db /Lib/locale.py | |
parent | 9eb5ca0774f94215be48442100c829db2484e146 (diff) | |
download | cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.zip cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.bz2 |
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/locale.py')
-rw-r--r-- | Lib/locale.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index 5763b14..569fe85 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -14,7 +14,7 @@ import sys import encodings import encodings.aliases import re -import collections +import collections.abc from builtins import str as _builtin_str import functools import warnings @@ -215,7 +215,7 @@ def format_string(f, val, grouping=False, monetary=False): percents = list(_percent_re.finditer(f)) new_f = _percent_re.sub('%s', f) - if isinstance(val, collections.Mapping): + if isinstance(val, collections.abc.Mapping): new_val = [] for perc in percents: if perc.group()[-1]=='%': |