absolute/relative imports

Alexander Solovyov alexander at solovyov.net
Sat Apr 30 07:41:08 CDT 2011


What's our policy on handling those? They are intermixed in codebase,
sometimes it's "from mercurial import node" and sometimes it's just
"import node". Shouldn't it be better to have it uniform?

I think it would be nice to move to absolute imports, especially given
that newer Python deprecates relative imports (requiring to use
'import .node' for that).

-- 
Alexander


More information about the Mercurial-devel mailing list