mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
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 <newren@gmail.com>
This commit is contained in:
parent
468ef568cf
commit
2562f0270c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user