/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/lazy_import.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-12 23:10:13 UTC
  • mto: This revision was merged to the branch mainline in revision 2004.
  • Revision ID: john@arbash-meinel.com-20060912231013-10a9f5573a3bae44
Clean up comment as suggested by Robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    At present, this only supports 'import foo.bar.baz' syntax.
102
102
    """
103
103
 
104
 
    # Intentially a long semi-unique name that won't likely exist
105
 
    # elsewhere. (We can't use isinstance because that accesses __class__
106
 
    # which causes the __getattribute__ to trigger)
 
104
    # '_import_replacer_children' is intentionally a long semi-unique name
 
105
    # that won't likely exist elsewhere. This allows us to detect an
 
106
    # ImportReplacer object by using
 
107
    #       object.__getattribute__(obj, '_import_replacer_children')
 
108
    # We can't just use 'isinstance(obj, ImportReplacer)', because that
 
109
    # accesses .__class__, which goes through __getattribute__, and triggers
 
110
    # the replacement.
107
111
    __slots__ = ('_import_replacer_children', '_member', '_module_path')
108
112
 
109
113
    def __init__(self, scope, name, module_path, member=None, children={}):