From 0a258931297c274673e70bff8de6bb2098d152ca Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 18 Feb 2014 15:59:37 -0600 Subject: [PATCH] Pickling fix for primitives.If --- pymbolic/primitives.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymbolic/primitives.py b/pymbolic/primitives.py index 3106fae..0eb6e0f 100644 --- a/pymbolic/primitives.py +++ b/pymbolic/primitives.py @@ -934,10 +934,10 @@ class If(Expression): .. attribute:: else_ """ - init_arg_names = ("criterion", "then", "else_") + init_arg_names = ("condition", "then", "else_") - def __init__(self, criterion, then, else_): - self.condition = criterion + def __init__(self, condition, then, else_): + self.condition = condition self.then = then self.else_ = else_ -- GitLab