/rev/31a1534f6b77
changeset: 1341:31a1534f6b77
user: Marcel Keller <[email protected]>
date: Tue Oct 27 20:45:20 2009 +0100
summary: runtime: Priorize mixins over base runtime.
Otherwise, BasicActiveRuntime.get_triple() overwrites get_triple() of
the chosen mixin.
diffstat:
viff/runtime.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 614c32bfe8fb -r 31a1534f6b77 viff/runtime.py
--- a/viff/runtime.py Tue Oct 27 19:59:42 2009 +0100
+++ b/viff/runtime.py Tue Oct 27 20:45:20 2009 +0100
@@ -950,7 +950,7 @@
# We must include at least one new-style class in bases. We
# include it last to avoid overriding __init__ from the other
# base classes.
- bases = (runtime_class,) + tuple(mixins) + (object,)
+ bases = tuple(mixins) + (runtime_class,) + (object,)
return type("ExtendedRuntime", bases, {})
def create_runtime(id, players, threshold, options=None, runtime_class=None):
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk