Mercurial > hg
diff hgext/convert/cvsps.py @ 51146:de9cbc5a1450 stable
py3: pass unicode strings to hasattr() throughout
I guess we missed these instances because they're not covered by tests.
This is a graft of 1625fe807c04a490f9516bc8e14140e570c06146 that landed on
default.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 13 Nov 2023 09:19:11 -0800 |
parents | d718eddf01d9 |
children | 1eab9e40c0c8 |
line wrap: on
line diff
--- a/hgext/convert/cvsps.py Tue Nov 21 16:20:58 2023 +0100 +++ b/hgext/convert/cvsps.py Mon Nov 13 09:19:11 2023 -0800 @@ -198,9 +198,9 @@ oldlog = pickle.load(open(cachefile, b'rb')) for e in oldlog: if not ( - hasattr(e, b'branchpoints') - and hasattr(e, b'commitid') - and hasattr(e, b'mergepoint') + hasattr(e, 'branchpoints') + and hasattr(e, 'commitid') + and hasattr(e, 'mergepoint') ): ui.status(_(b'ignoring old cache\n')) oldlog = []