Re: [PATCH 5 of 5] demandimport: reject contextlib._GeneratorContextManager on Py < 3.2

2016-09-21 Thread timeless
Yuya Nishihara wrote: > Can't we simply ignore 'contextlib' ? I had a patch that did that. It felt gross (it clearly wasn't very elegant) > Since contextlib is imported by demandimport.py, there's no benefit to delay > importing contextlib. So, demandimport could just return a given module if

Re: [PATCH 5 of 5] demandimport: reject contextlib._GeneratorContextManager on Py < 3.2

2016-09-21 Thread Yuya Nishihara
On Wed, 21 Sep 2016 03:59:35 +, timeless wrote: > # HG changeset patch > # User timeless > # Date 1474429683 0 > # Wed Sep 21 03:48:03 2016 + > # Node ID e07c3d398573f74a2e382deb06462bdc15ed437f > # Parent 894cc47eb82a85d167f5717c9fe0a31392e5bb97 > # Available

[PATCH 5 of 5] demandimport: reject contextlib._GeneratorContextManager on Py < 3.2

2016-09-20 Thread timeless
# HG changeset patch # User timeless # Date 1474429683 0 # Wed Sep 21 03:48:03 2016 + # Node ID e07c3d398573f74a2e382deb06462bdc15ed437f # Parent 894cc47eb82a85d167f5717c9fe0a31392e5bb97 # Available At https://bitbucket.org/timeless/mercurial-crew # hg