diff options
| author | bwarsaw | 2000-07-20 21:47:16 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-07-20 21:47:16 +0000 |
| commit | bc022715037bcdd9f13944046f660d1a3d78ddc8 (patch) | |
| tree | d33dd72aa256fbb0f8c6e260b01611e00a288560 /Mailman/Utils.py | |
| parent | 729c4ce50bcb4081f3e16bdecdf3b0927dee2e1a (diff) | |
| download | mailman-bc022715037bcdd9f13944046f660d1a3d78ddc8.tar.gz mailman-bc022715037bcdd9f13944046f660d1a3d78ddc8.tar.zst mailman-bc022715037bcdd9f13944046f660d1a3d78ddc8.zip | |
Diffstat (limited to 'Mailman/Utils.py')
| -rw-r--r-- | Mailman/Utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index de600e0ed..8188cf15b 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -628,7 +628,7 @@ def unhexlify(s): acc = [] append = acc.append # In Python 2.0, we can use the int() built-in - int16 = string.atol + int16 = string.atoi for i in range(0, len(s), 2): - append(chr(int16(s[i], 16)*16 + int16(s[i+1], 16))) + append(chr(int16(s[i:i+2], 16))) return string.join(acc, '') |
