[paramiko] Compatibility with Python 2.2 and 2.3 (was: _def_urandom is not defined)

Robey Pointer robey at lag.net
Sun Feb 17 21:12:48 PST 2008


On 12 Feb 2008, at 7:33, Dwayne Litzenberger wrote:

> On February 12, 2008 02:42:28 am Justin Cook wrote:
>> Apparently, line 47 in 'site-packages/paramiko/osrandom.py' has a
>> typographical error and should read 'return _dev_urandom.read(bytes)'
>> versus 'return _def_urandom.read(bytes)'.
>
> Hmm. It looks like neither Robey nor I have tested our changes with  
> Python 2.2
> or Python 2.3.

In fact, I no longer have a copy of anything older than 2.4! :)

[...]

> Robey: I've attached a bundle that fixes both the typo and the tests  
> for
> Python 2.3.6, but Python 2.2 support (at least in the test suite) is  
> still
> pretty broken.  Do you want to have a look at it?

The patch looks straightforward, and works find under python 2.5, so  
I'll merge it.

Would anyone scream if I removed support for python 2.2? Google says  
python 2.3 was released five years ago, so I'm thinking it's fair to  
ask python 2.2 users to upgrade at this point.

robey




More information about the paramiko mailing list