hashlib.sha1.hexdigest() returns str on Python 3.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG9fcf8084ada8: py3: use node.hex(m.digest()) instead of m.hexdigest()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
diff --git a/hgext/remotefilelog/basepack.py b/hgext/remotefilelog/basepack.py
- a/hgext/remotefilelog/basepack.py
+++ b/hgext/remotefilelog/basepack.py
@@ -10,6 +10,7 @@
from mercurial.i18n import _
from mercurial import (
+ node,
hgext/remotefilelog/basepack.py:472: import 'node' from line 12 shadowed by loop variable
Comment Actions
> hgext/remotefilelog/basepack.py:472: import 'node' from line 12 shadowed by loop variable Looks like a False positive/negative.
Might be, but it's better to not shadow global names by local ones.
Queued, thanks.