##// END OF EJS Templates
peer: ensure command names are always ascii bytestrs...
Augie Fackler -
r34734:115efdd9 default
parent child Browse files
Show More
@@ -10,6 +10,7 from __future__ import absolute_import
10
10
11 from . import (
11 from . import (
12 error,
12 error,
13 pycompat,
13 util,
14 util,
14 )
15 )
15
16
@@ -92,7 +93,8 def batchable(f):
92 if not encresref:
93 if not encresref:
93 return encargsorres # a local result in this case
94 return encargsorres # a local result in this case
94 self = args[0]
95 self = args[0]
95 encresref.set(self._submitone(f.__name__, encargsorres))
96 cmd = pycompat.bytesurl(f.__name__) # ensure cmd is ascii bytestr
97 encresref.set(self._submitone(cmd, encargsorres))
96 return next(batchable)
98 return next(batchable)
97 setattr(plain, 'batchable', f)
99 setattr(plain, 'batchable', f)
98 return plain
100 return plain
General Comments 0
You need to be logged in to leave comments. Login now