996d64681e55

I fixed my deployed `hg-prompt` thinking I had done it
in the version I pushed to bitbucket. I only noticed it
because I had to reinstall. :/
[view raw] [browse files]
author Chris <doktorstick@gmail.com>
date Tue, 13 Sep 2016 16:09:05 -0500
parents ed22ce1f3057
children 804a341f819b
branches/tags (none)
files prompt.py

Changes

--- a/prompt.py	Fri Jul 01 17:52:18 2016 -0500
+++ b/prompt.py	Tue Sep 13 16:09:05 2016 -0500
@@ -68,7 +68,7 @@
     c_tmp = cache + '.temp'
 
     devnull = 'NUL:' if subprocess.mswindows else os.devnull
-    spawn = lambda fn: fn() if subprocess.mswindows else _daemon_spawn
+    spawn = lambda fn: fn() if subprocess.mswindows else _daemon_spawn (fn)
 
     def _update_cache():
         # This is kind of a hack and I feel a little bit dirty for doing it.
@@ -83,7 +83,7 @@
     # Spawn the update in a daemon process so it doesn't slow
     # down the prompt return.
     spawn (_update_cache)
-    return
+
 
 def _with_groups(groups, out):
     out_groups = [groups[0]] + [groups[-1]]