>> This is https://bugs.python.org/issue32305, apparently intentional and will
>> be in 3.7.  So better fix the packages itself. Not sure if that really should
>> be backported.

> Thanks for the forward.  The fix is for third party packages to use
> `getattr(module, ‘__file__’, None)` instead of `hasattr(module, ‘__file__’)`.
> I think gunicorn has already fixed this in their upstream.

Reply via email to