wrapfunction: use sysstr instead of bytes as argument in "journal"
This is as valid and simpler, it will help us to eventually get ride of
`safehasattr`.
--- a/hgext/journal.py Fri Feb 03 04:21:55 2023 +0100
+++ b/hgext/journal.py Fri Feb 03 04:22:15 2023 +0100
@@ -66,13 +66,13 @@
# Journal recording, register hooks and storage object
def extsetup(ui):
- extensions.wrapfunction(dispatch, b'runcommand', runcommand)
- extensions.wrapfunction(bookmarks.bmstore, b'_write', recordbookmarks)
+ extensions.wrapfunction(dispatch, 'runcommand', runcommand)
+ extensions.wrapfunction(bookmarks.bmstore, '_write', recordbookmarks)
extensions.wrapfilecache(
localrepo.localrepository, b'dirstate', wrapdirstate
)
- extensions.wrapfunction(hg, b'postshare', wrappostshare)
- extensions.wrapfunction(hg, b'copystore', unsharejournal)
+ extensions.wrapfunction(hg, 'postshare', wrappostshare)
+ extensions.wrapfunction(hg, 'copystore', unsharejournal)
def reposetup(ui, repo):