Skip to content
Myr

Added comment to the importer wiping.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent f80bfca · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:flask/ext/__init__.py+5 added
29 unmodified lines
30 from sys import meta_path31 self.prefix = __name__ + '.'32 self.prefix_cutoff = __name__.count('.') + 13334 # since people might reload the flask.ext module (by accident or35 # intentionally) we have to make sure to not add more than one36 # import hook. We can't check class types here either since a new37 # class will be created on reload. As a result of that we check38 # the name of the class and remove stale instances.39 def _name(x):40 cls = type(x)41 return cls.__module__ + '.' + cls.__name__42 this = _name(self)
25 unmodified lines