diff hgext/fsmonitor/__init__.py @ 50778:ba3add904ab4

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`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 03 Feb 2023 04:19:06 +0100
parents 2905b78fc52e
children d718eddf01d9
line wrap: on
line diff
--- 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):