From d8743391c655303a15b76c5e526555f58dd7b0f5 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Wed, 6 Feb 2019 14:25:27 -0600 Subject: [PATCH] Another spot where Variable can be defaulted. --- pymbolic/primitives.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pymbolic/primitives.py b/pymbolic/primitives.py index 9633625..8bc8042 100644 --- a/pymbolic/primitives.py +++ b/pymbolic/primitives.py @@ -1721,10 +1721,7 @@ def make_sym_vector(name, components, var_factory=Variable): return join_fields(*[vfld.index(i) for i in components]) -def make_sym_array(name, shape, var_factory=None): - if var_factory is None: - var_factory = Variable - +def make_sym_array(name, shape, var_factory=Variable): vfld = var_factory(name) if shape == (): return vfld -- GitLab