[PATCHv2 2/2] Re: Adapt the code to work with the new imaplib2

Nicolas Sebrecht nicolas.s-dev at laposte.net
Mon Aug 15 12:26:36 BST 2011


On Mon, Aug 15, 2011 at 01:17:20PM +0200, Sebastian Spaeth wrote:
> On Mon, 15 Aug 2011 12:40:47 +0200, Nicolas Sebrecht wrote:
> > Looks like with this topic I get
> 
> >     elif isinstance(e, socket.error) and e.args[0] == errno.ECONNREFUSED:
> > NameError: global name 'errno' is not defined
> > 
> >   global name 'errno' is not defined
> 
> Just sent a patch that fixes the missing import, not sure how it got
> lost somewhere. Interesting that you would be getting a refused
> connections.
> 
> I hope to have finished my series of destabilizing patches soon, so we
> can stabilize things again... :-)

Ok.

> BTW, is there a python tool that can check for missing imports?

Don't know such tool. My vim syntax highlights most import issues,
though.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list