1.1 --- a/resolving.py Mon Sep 05 20:00:19 2016 +0200
1.2 +++ b/resolving.py Mon Sep 05 22:29:22 2016 +0200
1.3 @@ -29,26 +29,6 @@
1.4
1.5 "Resolving names mix-in for inspected modules."
1.6
1.7 - # Object resolution.
1.8 -
1.9 - def get_resolved_object(self, path):
1.10 -
1.11 - """
1.12 - Get the details of an object with the given 'path' within this module.
1.13 - Where the object has not been resolved, None is returned. This differs
1.14 - from the get_object method used elsewhere in that it does not return an
1.15 - unresolved object reference.
1.16 - """
1.17 -
1.18 - if self.objects.has_key(path):
1.19 - ref = self.objects[path]
1.20 - if ref.has_kind("<depends>"):
1.21 - return None
1.22 - else:
1.23 - return ref
1.24 - else:
1.25 - return None
1.26 -
1.27 # Post-inspection resolution activities.
1.28
1.29 def resolve(self):
1.30 @@ -404,4 +384,24 @@
1.31 if modifiers and modifiers.has_key(access):
1.32 del modifiers[access]
1.33
1.34 + # Object resolution.
1.35 +
1.36 + def get_resolved_object(self, path):
1.37 +
1.38 + """
1.39 + Get the details of an object with the given 'path' within this module.
1.40 + Where the object has not been resolved, None is returned. This differs
1.41 + from the get_object method used elsewhere in that it does not return an
1.42 + unresolved object reference.
1.43 + """
1.44 +
1.45 + if self.objects.has_key(path):
1.46 + ref = self.objects[path]
1.47 + if ref.has_kind("<depends>"):
1.48 + return None
1.49 + else:
1.50 + return ref
1.51 + else:
1.52 + return None
1.53 +
1.54 # vim: tabstop=4 expandtab shiftwidth=4