[PATCH] Sftp type error #49363

Robey Pointer robey at lag.net
Fri Jun 16 19:14:14 BST 2006


On 15 Jun 2006, at 18:20, John Arbash Meinel wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Robey Pointer wrote:
>>
>
> ...
>
>>>
>>> I personally don't like the look of the '_' variable names, though I
>>> understand it is because you are ignoring the return value.
>>> Perhaps 'dummy', though I wouldn't block on it.
>>
>> I'm agnostic and happy to change them to 'dummy'.  I picked up the  
>> '_'
>> habit from some other python code I saw once.  Ammended patch  
>> attached.
>>
>>
>>> Is select.select() portable across platforms?
>>> Any reason not to use asyncore instead?
>>
>> It should be (on sockets only).  Asyncore would probably work  
>> too.  The
>> point of the select() here is not to poll multiple sockets, but to  
>> do an
>> equivalent to socket.accept(timeout).  Gawd, I've written this  
>> kind of
>> code so many times that I feel older just looking at it again.   
>> Anyway,
>> the timeout is so that we can simultaneously scan for an incoming
>> accept() *and* the stop_event.
>>
>> robey
>
> It is indeed fixed. +1 overall. This makes the SFTP tests *much*  
> faster.

Adding [PATCH] to the subject line to try to attract another +1.

robey





More information about the bazaar mailing list