File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ChangeLog for replacer
22
3+ *replacer-3.4
4+ Martin Väth <martin at mvath.de>:
5+ - Deal better with sre_parse deprecation:
6+ Suppress warning and check if sre_parse.expand_template exists.
7+
38*replacer-3.3
49 Martin Väth <martin at mvath.de>:
510 - Make replacer work with current versions of colorama.
Original file line number Diff line number Diff line change @@ -11,19 +11,23 @@ import locale
1111import os
1212import re
1313import sys
14+ import warnings
15+ warnings .filterwarnings ("ignore" , category = DeprecationWarning )
1416
15- version = '3.3 '
17+ version = '3.4 '
1618
1719# Set localedir to e.g. '/usr/share/locale' to fix the gettext (nls) path.
1820# If localedir == '', the value is fetched from $REPLACER_NLS or $NLS.
1921# If localedir is None, gettext (nls) is not used.
2022localedir = ''
2123
24+ warnings .filterwarnings ("ignore" , category = DeprecationWarning )
2225try :
2326 import sre_parse
24- have_sre_parse = True
27+ have_sre_parse = "expand_template" in dir ( sre_parse )
2528except ImportError :
2629 have_sre_parse = False
30+ warnings .resetwarnings ()
2731
2832if localedir is not None :
2933 try :
You can’t perform that action at this time.
0 commit comments