diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-26 16:28:41 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-11-26 16:28:41 -0500 |
| commit | f1e4718f79564e53e2cee8ba51bbdf8af84bc903 (patch) | |
| tree | b58ead590c18d519800f05660293b26f3af5f87f /lib/sqlalchemy/util.py | |
| parent | 45cdb17ef0b08f31a42423554ec94ed913fb31fe (diff) | |
| parent | 6dfbe839aaf026e72ecb079fc7608ad6c09babf8 (diff) | |
| download | sqlalchemy-f1e4718f79564e53e2cee8ba51bbdf8af84bc903.tar.gz | |
- merge mapper simpler compile branch, [ticket:1966]
Diffstat (limited to 'lib/sqlalchemy/util.py')
| -rw-r--r-- | lib/sqlalchemy/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 7e4ec1396..5416fcfbb 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -1592,7 +1592,7 @@ class importlater(object): self._il_addtl = addtl @memoized_property - def _il_module(self): + def module(self): m = __import__(self._il_path) for token in self._il_path.split(".")[1:]: m = getattr(m, token) @@ -1609,7 +1609,7 @@ class importlater(object): def __getattr__(self, key): try: - attr = getattr(self._il_module, key) + attr = getattr(self.module, key) except AttributeError: raise AttributeError( "Module %s has no attribute '%s'" % |
