# HG changeset patch # User Alexis S. L. Carvalho # Date 1156045493 10800 # Node ID 61afc32c1a495588442d3c810f3ab6eac15c4778 # Parent 7f5fc4b347de86cc8bafa8e7c02f49b238ab3da6 Avoid Python 2.5 warning demandload.py:112: Warning: 'as' will become a reserved keyword in Python 2.6 diff -r 7f5fc4b347de -r 61afc32c1a49 mercurial/demandload.py --- 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_)