1.1 --- a/common.py Thu Oct 06 14:28:05 2016 +0200
1.2 +++ b/common.py Thu Oct 06 14:29:02 2016 +0200
1.3 @@ -802,6 +802,15 @@
1.4 path, name, attrnames, access = location
1.5 return get_attrnames(attrnames)[0]
1.6
1.7 +def get_name_path(path, name):
1.8 +
1.9 + "Return a suitable qualified name from the given 'path' and 'name'."
1.10 +
1.11 + if "." in name:
1.12 + return name
1.13 + else:
1.14 + return "%s.%s" % (path, name)
1.15 +
1.16 # Useful data.
1.17
1.18 predefined_constants = "False", "None", "NotImplemented", "True"