1.1 --- a/simplify/simplified/program.py Sat Sep 22 19:05:30 2007 +0200
1.2 +++ b/simplify/simplified/program.py Sun Oct 14 22:44:48 2007 +0200
1.3 @@ -65,11 +65,17 @@
1.4 choices Any choices which may be included in the final program.
1.5 """
1.6
1.7 - common_attributes = "name", "index", "value", "nstype", "internal", "returns_value", "is_method", "ref", "module", "structures", "original"
1.8 + common_attributes = ("name", "index", "value", "nstype", "internal",
1.9 + "returns_value", "is_method", "ref", "module", "structures", "original")
1.10 +
1.11 expression_attributes = "expr", "lvalue", "test"
1.12 +
1.13 argument_attributes = "star", "dstar"
1.14 +
1.15 invocation_attributes = "params", # not "args" - see "pos_args", "kw_args"
1.16 - grouping_attributes = "code", "body", "else_", "handler", "finally_", "choices", "nodes"
1.17 +
1.18 + grouping_attributes = ("code", "body", "else_", "handler", "finally_",
1.19 + "choices", "nodes")
1.20
1.21 def __init__(self, original=None, defining=0, **kw):
1.22
1.23 @@ -199,7 +205,9 @@
1.24 if hasattr(self, "accesses"):
1.25 self._pprint(indent, "", "--------", stream=stream)
1.26 for ref, attributes in self.accesses.items():
1.27 - self._pprint(indent + 2, "| ", "when %s: %s" % (ref, ", ".join([("%s via %s" % attr_acc) for attr_acc in attributes])), stream=stream)
1.28 + self._pprint(indent + 2, "| ", "when %s: %s" % (ref,
1.29 + ", ".join([("%s via %s" % attr_acc) for attr_acc in attributes])
1.30 + ), stream=stream)
1.31 self._pprint(indent, "", "--------", stream=stream)
1.32 if hasattr(self, "writes"):
1.33 self._pprint(indent, "", "--------", stream=stream)