Skip to content
Snippets Groups Projects
Commit 672cd1c8 authored by timeless developer's avatar timeless developer
Browse files

py26: __code__

parent dfc11a0e
No related branches found
No related tags found
1 merge request!14py3 part 2
......@@ -307,7 +307,7 @@
revs = opts.get('onlyheads', opts.get('revs'))
r, c, cleanup = repo.githandler.getremotechanges(other, revs)
# ugh. This is ugly even by mercurial API compatibility standards
if 'onlyheads' not in orig.func_code.co_varnames:
if 'onlyheads' not in orig.__code__.co_varnames:
cleanup = None
return r, c, cleanup
return orig(ui, repo, other, *args, **opts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment