Mercurial > hg
changeset 2960:61afc32c1a49
Avoid Python 2.5 warning
demandload.py:112: Warning: 'as' will become a reserved keyword in Python 2.6
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 20 Aug 2006 00:44:53 -0300 |
parents | 7f5fc4b347de |
children | 5bb65c3945a3 |
files | mercurial/demandload.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/demandload.py Thu Aug 17 15:30:45 2006 -0500 +++ b/mercurial/demandload.py Sun Aug 20 00:44:53 2006 -0300 @@ -109,9 +109,9 @@ mod = mod[:col] else: fromlist = [] - as = None + as_ = None if '@' in mod: - mod, as = mod.split("@") + mod, as_ = mod.split("@") importer = _importer(scope, mod, fromlist) if fromlist: for name in fromlist: @@ -130,6 +130,6 @@ continue else: basemod = mod - if not as: - as = basemod - scope[as] = _replacer(importer, as) + if not as_: + as_ = basemod + scope[as_] = _replacer(importer, as_)