##// END OF EJS Templates
peer: when collecting method names for batch calls, bytes-ify __name__...
Augie Fackler -
r34728:a652b776 default
parent child Browse files
Show More
@@ -34,7 +34,9 b' class batcher(object):'
34 def __getattr__(self, name):
34 def __getattr__(self, name):
35 def call(*args, **opts):
35 def call(*args, **opts):
36 resref = future()
36 resref = future()
37 self.calls.append((name, args, opts, resref,))
37 # Please don't invent non-ascii method names, or you will
38 # give core hg a very sad time.
39 self.calls.append((name.encode('ascii'), args, opts, resref,))
38 return resref
40 return resref
39 return call
41 return call
40 def submit(self):
42 def submit(self):
General Comments 0
You need to be logged in to leave comments. Login now