From cb9b9edd88cb35f998e7d9dd9cd3f614189a582d Mon Sep 17 00:00:00 2001 From: Nils Gillmann Date: Thu, 17 May 2018 16:10:30 +0000 Subject: [PATCH] PEP 237 unified long integers and integers: http://www.python.org/dev/peps/pep-0237/ Signed-off-by: Nils Gillmann --- contrib/gnunet-chk.py.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/gnunet-chk.py.in b/contrib/gnunet-chk.py.in index f20153a8a..c976b2143 100755 --- a/contrib/gnunet-chk.py.in +++ b/contrib/gnunet-chk.py.in @@ -192,11 +192,9 @@ class Chk: def setSize(self, size): self.fsize = size - # 2to3-3.5 suggests to change the code below to: - # if isinstance (self.fsize, int): def uri(self): sizestr = repr(self.fsize) - if isinstance(self.fsize, long): + if isinstance(self.fsize, int): sizestr = sizestr[:-1] return GNUNET_FS_URI_PREFIX + GNUNET_FS_URI_CHK_INFIX + \ encode_data_to_string(bytearray(self.key)) + "." + \ -- 2.25.1