diff hgext/remotefilelog/fileserverclient.py @ 51129: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 f4733654f144
line wrap: on
line diff
--- a/hgext/remotefilelog/fileserverclient.py	Mon Nov 06 23:17:10 2023 +0100
+++ b/hgext/remotefilelog/fileserverclient.py	Mon Nov 13 09:19:11 2023 -0800
@@ -641,7 +641,7 @@
             self._lfsprefetch(fileids)
 
     def _lfsprefetch(self, fileids):
-        if not _lfsmod or not hasattr(self.repo.svfs, b'lfslocalblobstore'):
+        if not _lfsmod or not hasattr(self.repo.svfs, 'lfslocalblobstore'):
             return
         if not _lfsmod.wrapper.candownload(self.repo):
             return