Index: build/android/pylib/utils/parallelizer.py |
diff --git a/build/android/pylib/utils/parallelizer.py b/build/android/pylib/utils/parallelizer.py |
index 203dc11082b09f2ecdb17546ab3eff784b49f11c..761455223ceee6ddf1466d5ec3363b97b1fb814f 100644 |
--- a/build/android/pylib/utils/parallelizer.py |
+++ b/build/android/pylib/utils/parallelizer.py |
@@ -80,7 +80,7 @@ class Parallelizer(object): |
""" |
self.pGet(None) |
- r = Parallelizer(self._orig_objs) |
+ r = type(self)(self._orig_objs) |
r._objs = [getattr(o, name) for o in self._objs] |
return r |
@@ -92,7 +92,7 @@ class Parallelizer(object): |
""" |
self.pGet(None) |
- r = Parallelizer(self._orig_objs) |
+ r = type(self)(self._orig_objs) |
r._objs = [o[index] for o in self._objs] |
return r |
@@ -116,7 +116,7 @@ class Parallelizer(object): |
if not callable(o): |
raise AttributeError("'%s' is not callable" % o.__name__) |
- r = Parallelizer(self._orig_objs) |
+ r = type(self)(self._orig_objs) |
r._objs = reraiser_thread.ReraiserThreadGroup( |
[reraiser_thread.ReraiserThread( |
o, args=args, kwargs=kwargs, |