From 2562f0270c41599eeed3a1fe26f03107596b72af Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Tue, 30 Apr 2019 23:46:05 -0700 Subject: [PATCH] filter-repo (python3): revert "workaround python<2.7.9 exec bug" Commit ca32c5d9afe2 ("filter-repo: workaround python<2.7.9 exec bug", 2019-04-30) put in a workaround for python versions prior to 2.7.9, but which was incompatible with python3. Revert it as one step towards migrating to python3. Signed-off-by: Elijah Newren --- git-filter-repo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-filter-repo b/git-filter-repo index 197664f..8039fdd 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -2619,8 +2619,8 @@ class RepoFilter(object): def _handle_arg_callbacks(self): def make_callback(argname, str): - exec 'def callback({}):\n'.format(argname)+\ - ' '+'\n '.join(str.splitlines()) in globals() + exec('def callback({}):\n'.format(argname)+ + ' '+'\n '.join(str.splitlines()), globals()) return callback #namespace['callback'] def handle(type): callback_field = '_{}_callback'.format(type)