Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 23:33:57 +0100, Nicolas Toper wrote: Good point, you are right. Thanks :) I can still commit a patch: really there just need a finally clause at the end of maybeParseConfig to close the file AFAI A patch (with unit test :) would be quite welcome. Please open a ticket at ht

Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Nicolas Toper
Good point, you are right. Thanks :) I can still commit a patch: really there just need a finally clause at the end of maybeParseConfig to close the file AFAI Best, Nicolas On Mon, Mar 2, 2009 at 11:06 PM, Jean-Paul Calderone wrote: > On Mon, 2 Mar 2009 22:55:26 +0100, Nicolas Toper wrote: >

Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 22:55:26 +0100, Nicolas Toper wrote: Hi, It seems the resolv file in twisted.names.client#maybeParseConfig is never closed. This creates a exceptions.IOError: [Errno 24] Too many open files: '/etc/resolv.conf (FYI I am resolving a domain very often in my script). Am I

[Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Nicolas Toper
Hi, It seems the resolv file in twisted.names.client#maybeParseConfig is never closed. This creates a exceptions.IOError: [Errno 24] Too many open files: '/etc/resolv.conf (FYI I am resolving a domain very often in my script). Am I correct? Would you like me to submit a patch to correct th