1.1 --- a/common.py Mon Oct 17 15:39:07 2016 +0200
1.2 +++ b/common.py Mon Oct 17 18:56:34 2016 +0200
1.3 @@ -834,11 +834,22 @@
1.4
1.5 invoked = []
1.6 if usage:
1.7 - for attrname, invocation in usage:
1.8 + for attrname, invocation, assignment in usage:
1.9 if invocation:
1.10 invoked.append(attrname)
1.11 return invoked
1.12
1.13 +def get_assigned_attributes(usage):
1.14 +
1.15 + "Obtain assigned attribute from the given 'usage'."
1.16 +
1.17 + assigned = []
1.18 + if usage:
1.19 + for attrname, invocation, assignment in usage:
1.20 + if assignment:
1.21 + assigned.append(attrname)
1.22 + return assigned
1.23 +
1.24 # Useful data.
1.25
1.26 predefined_constants = "False", "None", "NotImplemented", "True"