[PATCH 4 of 6 v4] debuginstall: expose modulepolicy

Augie Fackler raf at durin42.com
Wed May 18 14:13:07 EDT 2016


> On May 18, 2016, at 14:00, timeless <timeless at gmail.com> wrote:
> 
>> +def modulepolicy():
>> +    from . import modulepolicy
>> +    return modulepolicy
> 
> Personally, I'd like this. I did it the hard way because iirc augie
> objected to that style saying it's poor form.

I'm generally opposed to imports hidden inside functions because it's a great way to hide circular dependencies.


More information about the Mercurial-devel mailing list