# HG changeset patch # User Pierre-Yves David # Date 2023-09-01 11:08:02 # Node ID e054898624db1d83bf79622565026ea89fd8f71c # Parent defd2b3eafdbe4c3b01f87904c2d340df26eea0a convert: use sysstr to check for attribute presence We do not need bytes here. diff --git a/hgext/convert/transport.py b/hgext/convert/transport.py --- a/hgext/convert/transport.py +++ b/hgext/convert/transport.py @@ -63,7 +63,7 @@ def _create_auth_baton(pool): if p: providers.append(p) else: - if util.safehasattr(svn.client, b'get_windows_simple_provider'): + if util.safehasattr(svn.client, 'get_windows_simple_provider'): providers.append(svn.client.get_windows_simple_provider(pool)) return svn.core.svn_auth_open(providers, pool) @@ -85,7 +85,7 @@ class SvnRaTransport: self.password = b'' # Only Subversion 1.4 has reparent() - if ra is None or not util.safehasattr(svn.ra, b'reparent'): + if ra is None or not util.safehasattr(svn.ra, 'reparent'): self.client = svn.client.create_context(self.pool) ab = _create_auth_baton(self.pool) self.client.auth_baton = ab