# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 10:00:56 # Node ID 3934d85cf8e98831c65e3dc56a8dca2c14a5640b # Parent 93cc085653fb84417f8bd261538d633c70d08021 largefile: use sysstr to check for attribute presence in `getstatuswriter` We do not need bytes here. diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -814,7 +814,7 @@ def getstatuswriter(ui, repo, forcibly=N Otherwise, this returns the function to always write out (or ignore if ``not forcibly``) status. """ - if forcibly is None and util.safehasattr(repo, b'_largefilesenabled'): + if forcibly is None and util.safehasattr(repo, '_largefilesenabled'): return repo._lfstatuswriters[-1] else: if forcibly: