# HG changeset patch # User Ludovic Chabant # Date 1561756040 0 # Node ID 9f2e480ad786266e8fed7d99f04d6bca973ea342 # Parent 395ab63d2af7ab8f099d31208c32955c225a82fe py3: make setup.py py3 compatible diff -r 395ab63d2af7 -r 9f2e480ad786 setup.py --- a/setup.py Tue Jul 30 02:55:22 2019 +0200 +++ b/setup.py Fri Jun 28 21:07:20 2019 +0000 @@ -7,7 +7,8 @@ def get_metadata(): meta = {} fullpath = join(dirname(__file__), META_PATH) - execfile(fullpath, meta) + with open(fullpath, 'r') as fp: + exec(fp.read(), meta) return meta def get_version():