From 74cce696b9c21b3aa43823c16964e423b45dbfdd Mon Sep 17 00:00:00 2001 From: gpotter2 Date: Wed, 17 Jan 2018 17:37:32 +0100 Subject: Small format fix --- scapy/layers/tls/cert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scapy') diff --git a/scapy/layers/tls/cert.py b/scapy/layers/tls/cert.py index b2abec6f..acd771a0 100644 --- a/scapy/layers/tls/cert.py +++ b/scapy/layers/tls/cert.py @@ -279,9 +279,9 @@ class PubKeyRSA(PubKey, _EncryptAndVerifyRSA): def import_from_tuple(self, tup): # this is rarely used e, m, mLen = tup - if isinstance(m, (str, bytes)): + if isinstance(m, bytes): m = pkcs_os2ip(m) - if isinstance(e, (str, bytes)): + if isinstance(e, bytes): e = pkcs_os2ip(e) self.fill_and_store(modulus=m, pubExp=e) self.pem = self.pubkey.public_bytes( -- cgit v1.2.3