From f6fc38c9693f99db724922f99fde7d619853ebbf Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Wed, 28 Oct 2020 14:56:34 -0700 Subject: python/python3-babel: Support Python 3.9. Signed-off-by: Benjamin Trigona-Harany Signed-off-by: Willy Sudiarto Raharjo --- python/python3-babel/python3-babel.SlackBuild | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/python3-babel/python3-babel.SlackBuild') diff --git a/python/python3-babel/python3-babel.SlackBuild b/python/python3-babel/python3-babel.SlackBuild index 9d7fe28dda..6d8fa8e156 100644 --- a/python/python3-babel/python3-babel.SlackBuild +++ b/python/python3-babel/python3-babel.SlackBuild @@ -73,6 +73,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +sed -i "s/getiterator/iter/" scripts/import_cldr.py # support Python 3.9 +sed -i "s/elem.getchildren()/list(elem)/" scripts/import_cldr.py # support Python 3.9 ln -s $CWD/core.zip cldr/cldr-core-$CLDRVER.zip python3 setup.py import_cldr python3 setup.py install --root=$PKG -- cgit v1.2.3