diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-08-04 15:02:20 +0200 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-08-04 17:05:58 +0200 |
commit | ded036cf988b0cf4b20002d88434282f30762638 (patch) | |
tree | d927a9732226093ffcdf7400808ae45f5b9e6c37 /rsa/core.py | |
parent | 65a81053d596c62ad2532c7e0e38e68ef61304bd (diff) | |
download | rsa-git-ded036cf988b0cf4b20002d88434282f30762638.tar.gz |
Removed compatibility code for Python 2.7 and 3.4
Diffstat (limited to 'rsa/core.py')
-rw-r--r-- | rsa/core.py | 4 |
1 files changed, 1 insertions, 3 deletions
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__)) |