--- python3-openid-3.0.2/openid/cryptutil.py.orig 2013-11-29 09:53:00.730273249 +0100
+++ python3-openid-3.0.2/openid/cryptutil.py 2013-11-29 09:53:24.816217916 +0100
@@ -101,8 +101,8 @@ else:
raise ValueError('This function only supports positive integers')
bytes = long_to_bytes(l)
- if ord(bytes[0]) > 127:
- return '\x00' + bytes
+ if bytes[0] > 127:
+ return b'\x00' + bytes
else:
return bytes
@@ -110,7 +110,7 @@ else:
if not bytes:
raise ValueError('Empty string passed to strToLong')
- if ord(bytes[0]) > 127:
+ if bytes[0] > 127:
raise ValueError('This function only supports positive integers')
return bytes_to_long(bytes)