From ded036cf988b0cf4b20002d88434282f30762638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sun, 4 Aug 2019 15:02:20 +0200 Subject: Removed compatibility code for Python 2.7 and 3.4 --- rsa/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rsa/core.py') diff --git a/rsa/core.py b/rsa/core.py index b3114d9..0660881 100644 --- a/rsa/core.py +++ b/rsa/core.py @@ -20,11 +20,9 @@ This is the actual core RSA implementation, which is only defined mathematically on integers. """ -from rsa._compat import is_integer - def assert_int(var, name): - if is_integer(var): + if isinstance(var, int): return raise TypeError('%s should be an integer, not %s' % (name, var.__class__)) -- cgit v1.2.1