# HG changeset patch # User Paul Boddie # Date 1487591957 -3600 # Node ID b12c85bb0a4ca52b15afa26dfba10eefcf094e1e # Parent be30371d7a373ed833285f8c7f7fbf3008be9c90 Simplify name selection for usage tracking, eliminating static object paths as names. Such paths are unlikely to refer to anything different from globals, and even then are effectively equivalent to globals for tracking purposes. diff -r be30371d7a37 -r b12c85bb0a4c common.py --- a/common.py Mon Feb 20 00:35:08 2017 +0100 +++ b/common.py Mon Feb 20 12:59:17 2017 +0100 @@ -749,8 +749,7 @@ If the name is being used outside a function, and if 'name_ref' is given, a path featuring the name in the global namespace is returned - where 'name_ref' indicates a global, or a static reference is used if - 'name_ref' provides such a reference. Otherwise, a path computed using + where 'name_ref' indicates a global. Otherwise, a path computed using the current namespace and the given name is returned. The intention of this method is to provide a suitably-qualified name @@ -769,11 +768,6 @@ if self.in_function: return name - # For static references, use the reference origin. - - elif name_ref and name_ref.final(): - return name_ref.final() - # For global names outside functions, use a global name. elif name_ref and name_ref.is_global_name():