diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2015-10-06 22:50:37 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2015-10-06 23:39:18 +0200 |
commit | 671b6e2a751322ceb19b324041c78d856ec53d26 (patch) | |
tree | 12915831cc37f267b4f6c8ca0fc17189725f769c /pskc/encryption.py | |
parent | 68b20e272d5546c94bffd90002732a55696f8978 (diff) |
Support Python 3
This enables support for Python 3 together with Python 2 support with a
single codebase.
On Python 3 key data is passed around as bytestrings which makes the
doctests a little harder to maintain across Python versions.
Diffstat (limited to 'pskc/encryption.py')
-rw-r--r-- | pskc/encryption.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pskc/encryption.py b/pskc/encryption.py index a9324e6..4911662 100644 --- a/pskc/encryption.py +++ b/pskc/encryption.py @@ -30,7 +30,7 @@ The encryption key can be derived using the KeyDerivation class. def unpad(value): """Remove padding from the plaintext.""" - return value[0:-ord(value[-1])] + return value[0:-ord(value[-1:])] class EncryptedValue(object): |