changeset 137:f71524147eb4

Fix some more binary vs str handling that I missed
author IBBoard <dev@ibboard.co.uk>
date Sat, 18 Jan 2020 20:28:52 +0000
parents fcd34011b0f0
children 920255137b9d
files prompt.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/prompt.py	Sat Jan 18 20:00:20 2020 +0000
+++ b/prompt.py	Sat Jan 18 20:28:52 2020 +0000
@@ -452,7 +452,7 @@
 def _pull_with_cache(orig, ui, repo, *args, **opts):
     """Wrap the pull command to delete the incoming cache as well."""
     res = orig(ui, repo, *args, **opts)
-    cache = path.join(repo.root, CACHE_PATH, 'incoming')
+    cache = path.join(repo.root, CACHE_PATH, b'incoming')
     if path.isfile(cache):
         os.remove(cache)
     return res
@@ -460,7 +460,7 @@
 def _push_with_cache(orig, ui, repo, *args, **opts):
     """Wrap the push command to delete the outgoing cache as well."""
     res = orig(ui, repo, *args, **opts)
-    cache = path.join(repo.root, CACHE_PATH, 'outgoing')
+    cache = path.join(repo.root, CACHE_PATH, b'outgoing')
     if path.isfile(cache):
         os.remove(cache)
     return res
@@ -474,8 +474,8 @@
         pass
 
 help.helptable += (
-    (['prompt-keywords'], _('Keywords supported by hg-prompt'),
-     lambda _: r'''hg-prompt currently supports a number of keywords.
+    ([b'prompt-keywords'], _(b'Keywords supported by hg-prompt'),
+     lambda _: rb'''hg-prompt currently supports a number of keywords.
 
 Some keywords support filters.  Filters can be chained when it makes
 sense to do so.  When in doubt, try it!