diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-16 14:45:38 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-16 14:45:38 +0530 |
commit | d1060d36697efcd1179ffdbc7b16d3a68643b8c5 (patch) | |
tree | e7c2d86d7d85dc5868f7a03f74474c2dc80cf191 /rsa/_compat.py | |
parent | 1caa13041d47213e8afba0ee8ccda67259203825 (diff) | |
download | rsa-git-d1060d36697efcd1179ffdbc7b16d3a68643b8c5.tar.gz |
Adds common includes and tests.
Diffstat (limited to 'rsa/_compat.py')
-rw-r--r-- | rsa/_compat.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rsa/_compat.py b/rsa/_compat.py index 7533c36..3c4eb81 100644 --- a/rsa/_compat.py +++ b/rsa/_compat.py @@ -76,6 +76,11 @@ except NameError: bytes_type = str +# To avoid calling b() multiple times in tight loops. +ZERO_BYTE = b('\x00') +EMPTY_BYTE = b('') + + def is_bytes(obj): """ Determines whether the given value is a byte string. |