# HG changeset patch # User Paul Boddie # Date 1473107362 -7200 # Node ID 7b2d2a4576f1bbed306081ed8fcc04225542a562 # Parent ca8b8bec2b27c136b91c4a92b439d0054ff3b4ac Moved object resolution method to the end of the class. diff -r ca8b8bec2b27 -r 7b2d2a4576f1 resolving.py --- a/resolving.py Mon Sep 05 20:00:19 2016 +0200 +++ b/resolving.py Mon Sep 05 22:29:22 2016 +0200 @@ -29,26 +29,6 @@ "Resolving names mix-in for inspected modules." - # Object resolution. - - def get_resolved_object(self, path): - - """ - Get the details of an object with the given 'path' within this module. - Where the object has not been resolved, None is returned. This differs - from the get_object method used elsewhere in that it does not return an - unresolved object reference. - """ - - if self.objects.has_key(path): - ref = self.objects[path] - if ref.has_kind(""): - return None - else: - return ref - else: - return None - # Post-inspection resolution activities. def resolve(self): @@ -404,4 +384,24 @@ if modifiers and modifiers.has_key(access): del modifiers[access] + # Object resolution. + + def get_resolved_object(self, path): + + """ + Get the details of an object with the given 'path' within this module. + Where the object has not been resolved, None is returned. This differs + from the get_object method used elsewhere in that it does not return an + unresolved object reference. + """ + + if self.objects.has_key(path): + ref = self.objects[path] + if ref.has_kind(""): + return None + else: + return ref + else: + return None + # vim: tabstop=4 expandtab shiftwidth=4