From e97d0d730367ad3b49efc712c01509500939c904 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Thu, 11 Aug 2011 02:38:13 +0530 Subject: Porting to Python 3 complete. All tests except pyasn1 stuff pass. --- rsa/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rsa/core.py') 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__)) -- cgit v1.2.1