Now you can see the list of commits, but it crashes when you press a
key.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
hgext/histedit.py | ||
---|---|---|
1120 | __bytes__ doesn't exist in Python 2. Did this patch regress Python 2? |
hgext/histedit.py | ||
---|---|---|
1120 | Oh, good point! I'll make sure to test it on Python 2 as well. Update coming soon. |
Comment Actions
+ return b"#%s %s %d:%s %s" % ((b'%d' % self.origpos).ljust(2),
+ action.ljust(6), r, h, desc)
+
+ bytes = str
__str__ = encoding.strmethod(__bytes__) can be used instead. __str__
of Python3 must return unicode string.
Comment Actions
Feel free to do that in flight. Otherwise I'll do it later today.
It won't matter in practice. We should of course have a separate method
explicitly for creating a line instead. But that's not for stable.
__bytes__ doesn't exist in Python 2. Did this patch regress Python 2?