Mercurial > hg-stable
changeset 50912:3934d85cf8e9
largefile: use sysstr to check for attribute presence in `getstatuswriter`
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 30 Aug 2023 12:00:56 +0200 |
parents | 93cc085653fb |
children | ab3267a86d5f |
files | hgext/largefiles/lfutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Wed Aug 30 12:24:12 2023 +0200 +++ b/hgext/largefiles/lfutil.py Wed Aug 30 12:00:56 2023 +0200 @@ -814,7 +814,7 @@ 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: