From 1a738975aa320e354b53a5db2fcfbc14aa114185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 1 Sep 2018 17:06:27 +0200 Subject: [PATCH] Remove deprecation warning - remove invalid escape sequence - use read_file instead of read_fp - use importlib instead of imp and __import__ - use callable instead of instance of collections.Callable - fix silent file closing - replace SafeConfigParser by ConfigParser - replace decodestring by decodebytes - replace encodestring by encodebytes issue7666 issue7390 review53361004 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 97a881996e..3846bc413c 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ def get_require_version(name): config = ConfigParser() -config.readfp(open('tryton.cfg')) +config.read_file(open('tryton.cfg')) info = dict(config.items('tryton')) for key in ('depends', 'extras_depend', 'xml'): if key in info: