summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-04-03 16:09:55 (GMT)
committerGitHub <noreply@github.com>2017-04-03 16:09:55 (GMT)
commit9acc6a03f1fd684fce2755b3b22f7448ad4c1dd6 (patch)
tree7b984278c7f7b147e73775e8dda81914c4af3e2d /Lib/locale.py
parent734125938d4653459593ebd28a0aec086efb1f27 (diff)
downloadcpython-9acc6a03f1fd684fce2755b3b22f7448ad4c1dd6.zip
cpython-9acc6a03f1fd684fce2755b3b22f7448ad4c1dd6.tar.gz
cpython-9acc6a03f1fd684fce2755b3b22f7448ad4c1dd6.tar.bz2
test_locale now ignores the DeprecationWarning (#977)
Don't fail anymore if test run with python3 -Werror. Fix also deprecation message: add a space.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 50cd652..73fc94d 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -245,7 +245,7 @@ def format_string(f, val, grouping=False, monetary=False):
def format(percent, value, grouping=False, monetary=False, *additional):
"""Deprecated, use format_string instead."""
warnings.warn(
- "This method will be removed in a future version of Python."
+ "This method will be removed in a future version of Python. "
"Use 'locale.format_string()' instead.",
DeprecationWarning, stacklevel=2
)