# HG changeset patch # User Paul Boddie # Date 1485964414 -3600 # Node ID 354ddce9205e192a83df44f616b7adcd3424b137 # Parent 167a42443af63b175beccf9df3e41a4778b6555c Moved the special attribute names collection to the top of the Importer class. diff -r 167a42443af6 -r 354ddce9205e importer.py --- a/importer.py Wed Feb 01 16:49:51 2017 +0100 +++ b/importer.py Wed Feb 01 16:53:34 2017 +0100 @@ -33,6 +33,8 @@ "An import machine, searching for and loading modules." + special_attributes = ("__args__", "__file__", "__fn__", "__name__", "__parent__") + def __init__(self, path, cache=None, verbose=False): """ @@ -605,10 +607,6 @@ l.update(self.condense_dependency_entry(deps, d)) return l - # NOTE: Consolidate this information in a common location. - - special_attributes = ("__args__", "__file__", "__fn__", "__name__", "__parent__") - def is_dynamic(self, ref): return not ref or not ref.static() and not ref.is_constant_alias() and not ref.is_predefined_value()