test-logexchange.t doesn't pass after this, but at least the
remotenames extension can be imported.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/remotenames.py | ||
---|---|---|
25–26 | This import style irritates the import checker. We could do try import UserDict dictmixin = DictMixin except import collections dictmixin = collections.MutableMapping would that be preferable? |
Comment Actions
"would that be preferable?"
Perhaps. We'll need that anyway to get around demandimport.
Comment Actions
I don't think we do (python3 demandimport is slightly nicer in this regard), but I've done it anyway since it helps the import checker.
hgext/remotenames.py | ||
---|---|---|
30 | collections.MutableMapping exists on Python2 as well (from 2.6 apparently), can't we use it? |
This import style irritates the import checker. We could do
try
except
would that be preferable?