Mercurial > kallithea
changeset 8185:6e537f0a9961
py3: automatic migration with 2to3 -f execfile
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 05 Feb 2020 23:04:10 +0100 |
parents | fb4b72c1c0f1 |
children | a455353077c8 |
files | kallithea/lib/vcs/utils/fakemod.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/utils/fakemod.py Wed Feb 05 23:03:55 2020 +0100 +++ b/kallithea/lib/vcs/utils/fakemod.py Wed Feb 05 23:04:10 2020 +0100 @@ -9,5 +9,5 @@ """ module = imp.new_module(name) module.__file__ = path - execfile(path, module.__dict__) + exec(compile(open(path, "rb").read(), path, 'exec'), module.__dict__) return module