Mercurial > hg-stable
diff hgext/convert/cvsps.py @ 51174:1625fe807c04
py3: pass unicode strings to hasattr() throughout
I guess we missed these instances because they're not covered by tests.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 13 Nov 2023 09:19:11 -0800 |
parents | d718eddf01d9 |
children |
line wrap: on
line diff
--- a/hgext/convert/cvsps.py Mon Nov 06 23:17:10 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 = []