wrapfunction: use sysstr instead of bytes as argument in "fsmonitor"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:19:06 +0100
changeset 50778 ba3add904ab4
parent 50777 8dc2724d0304
child 50779 39eb3aab3e63
wrapfunction: use sysstr instead of bytes as argument in "fsmonitor" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py	Mon Jul 10 16:12:33 2023 +0200
+++ b/hgext/fsmonitor/__init__.py	Fri Feb 03 04:19:06 2023 +0100
@@ -755,9 +755,9 @@
     )
     if pycompat.isdarwin:
         # An assist for avoiding the dangling-symlink fsevents bug
-        extensions.wrapfunction(os, b'symlink', wrapsymlink)
+        extensions.wrapfunction(os, 'symlink', wrapsymlink)
 
-    extensions.wrapfunction(merge, b'_update', wrapupdate)
+    extensions.wrapfunction(merge, '_update', wrapupdate)
 
 
 def wrapsymlink(orig, source, link_name):