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
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
hgext/remotenames.py | ||
---|---|---|
25–31 | 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? |
collections.MutableMapping exists on Python2 as well (from 2.6 apparently), can't we use it?