Ticket #5864: knownhosts-24.patch

File knownhosts-24.patch, 568 bytes (added by Julian Berman, 9 years ago)
  • twisted/conch/client/knownhosts.py

    diff --git a/twisted/conch/client/knownhosts.py b/twisted/conch/client/knownhosts.py
    index 4605f21..29b04a2 100644
    a b import sys 
    1515from zope.interface import implements
    1616
    1717from twisted.python.randbytes import secureRandom
    18 if sys.version_info >= (2, 5):
    19     from twisted.python.hashlib import sha1
    20 else:
    21     # We need to have an object with a method named 'new'.
    22     import sha as sha1
     18from twisted.python.hashlib import sha1
    2319
    2420from twisted.internet import defer
    2521