24 25c24 27 import hashlib --- try import hashlib except import sha 16

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
24,25c24,27
< import hashlib
<
---
> try:
> import hashlib
> except:
> import sha
161c163,166
< cipher = hashlib.sha1()
---
> if ver >= 0x0205:
> cipher = hashlib.sha1()
> else:
> cipher = sha.new()
191c196
< if ver < 0x0205 or ver >= 0x0300:
---
> if ver >= 0x0300: