hgext/remotefilelog/connectionpool.py
changeset 43115 4aa72cdf616f
parent 43104 74802979dd9d
child 46661 0509cee38757
--- 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()