Mercurial > public > mercurial-scm > hg-stable
diff hgext/fastannotate/commands.py @ 43115:4aa72cdf616f
py3: delete b'' prefix from safehasattr arguments
Differential Revision: https://phab.mercurial-scm.org/D7029
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 06 Oct 2019 20:17:41 -0700 |
parents | 687b865b95ad |
children | 8ff1ecfadcd1 |
line wrap: on
line diff
--- a/hgext/fastannotate/commands.py Tue Oct 08 19:35:30 2019 -0700 +++ b/hgext/fastannotate/commands.py Sun Oct 06 20:17:41 2019 -0700 @@ -218,7 +218,7 @@ paths = list(_matchpaths(repo, rev, pats, opts, aopts)) # for client, prefetch from the server - if util.safehasattr(repo, b'prefetchfastannotate'): + if util.safehasattr(repo, 'prefetchfastannotate'): repo.prefetchfastannotate(paths) for path in paths: @@ -273,7 +273,7 @@ # check if we need to do prefetch (client-side) rev = opts.get(r'rev') - if util.safehasattr(repo, b'prefetchfastannotate') and rev is not None: + if util.safehasattr(repo, 'prefetchfastannotate') and rev is not None: paths = list(_matchpaths(repo, rev, pats, pycompat.byteskwargs(opts))) repo.prefetchfastannotate(paths) @@ -320,7 +320,7 @@ ctx = scmutil.revsingle(repo, rev) m = scmutil.match(ctx, pats, opts) paths = list(ctx.walk(m)) - if util.safehasattr(repo, b'prefetchfastannotate'): + if util.safehasattr(repo, 'prefetchfastannotate'): # client if opts.get(b'REV'): raise error.Abort(_(b'--rev cannot be used for client'))