diff hgext/remotefilelog/connectionpool.py @ 43115:4aa72cdf616f

py3: delete b'' prefix from safehasattr arguments Differential Revision: https://phab.mercurial-scm.org/D7029
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 06 Oct 2019 20:17:41 -0700
parents 74802979dd9d
children 0509cee38757
line wrap: on
line diff
--- a/hgext/remotefilelog/connectionpool.py	Tue Oct 08 19:35:30 2019 -0700
+++ b/hgext/remotefilelog/connectionpool.py	Sun Oct 06 20:17:41 2019 -0700
@@ -47,12 +47,12 @@
                 # close pipee first so peer.cleanup reading it won't deadlock,
                 # if there are other processes with pipeo open (i.e. us).
                 peer = orig.im_self
-                if util.safehasattr(peer, b'pipee'):
+                if util.safehasattr(peer, 'pipee'):
                     peer.pipee.close()
                 return orig()
 
             peer = hg.peer(self._repo.ui, {}, path)
-            if util.safehasattr(peer, b'cleanup'):
+            if util.safehasattr(peer, 'cleanup'):
                 extensions.wrapfunction(peer, b'cleanup', _cleanup)
 
             conn = connection(pathpool, peer)
@@ -84,5 +84,5 @@
             self.close()
 
     def close(self):
-        if util.safehasattr(self.peer, b'cleanup'):
+        if util.safehasattr(self.peer, 'cleanup'):
             self.peer.cleanup()