diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 02:38:13 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 02:38:13 +0530 |
commit | e97d0d730367ad3b49efc712c01509500939c904 (patch) | |
tree | d780c2c3d49075c3c26ce587c17e5b1c9921f5b0 /rsa/core.py | |
parent | aed6e8657bc316ccd6964a33c04bd650e9951ae2 (diff) | |
download | rsa-git-e97d0d730367ad3b49efc712c01509500939c904.tar.gz |
Porting to Python 3 complete. All tests except pyasn1 stuff pass.
Diffstat (limited to 'rsa/core.py')
-rw-r--r-- | rsa/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rsa/core.py b/rsa/core.py index d984b89..fbc108a 100644 --- a/rsa/core.py +++ b/rsa/core.py @@ -19,11 +19,12 @@ This is the actual core RSA implementation, which is only defined mathematically on integers. ''' -import types + +from rsa._compat import is_integer def assert_int(var, name): - if type(var) in (types.IntType, types.LongType): + if is_integer(var): return raise TypeError('%s should be an integer, not %s' % (name, var.__class__)) |