##// END OF EJS Templates
worker: silence type error when calling pickle...
Gregory Szorc -
r49767:a0674e91 default
parent child Browse files
Show More
@@ -279,7 +279,11 b' def _posixworker(ui, func, staticargs, a'
279 while openpipes > 0:
279 while openpipes > 0:
280 for key, events in selector.select():
280 for key, events in selector.select():
281 try:
281 try:
282 # The pytype error likely goes away on a modern version of
283 # pytype having a modern typeshed snapshot.
284 # pytype: disable=wrong-arg-types
282 res = pickle.load(_blockingreader(key.fileobj))
285 res = pickle.load(_blockingreader(key.fileobj))
286 # pytype: enable=wrong-arg-types
283 if hasretval and res[0]:
287 if hasretval and res[0]:
284 retval.update(res[1])
288 retval.update(res[1])
285 else:
289 else:
General Comments 0
You need to be logged in to leave comments. Login now