From 2313eda2cebfc10d379f73227d4662edc88fb5d0 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Mon, 8 Jul 2019 11:10:17 +0200 Subject: [PATCH] Sort bindings (nicer appearance in source code) --- pystencils/backends/cbackend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py index f95995c8b..7c4937d1f 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -271,6 +271,7 @@ class CBackend: "" if type(u) == FieldPointerSymbol else ("[%i]" % u.coordinate)) for u in undefined_field_symbols ] + destructuring_bindings.sort() # only for code aesthetics template = jinja2.Template( """{ {% for binding in bindings -%} -- GitLab