aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gnunet-chk.py.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/gnunet-chk.py.in b/contrib/gnunet-chk.py.in
index c976b2143..f20153a8a 100755
--- a/contrib/gnunet-chk.py.in
+++ b/contrib/gnunet-chk.py.in
@@ -192,9 +192,11 @@ class Chk:
192 def setSize(self, size): 192 def setSize(self, size):
193 self.fsize = size 193 self.fsize = size
194 194
195 # 2to3-3.5 suggests to change the code below to:
196 # if isinstance (self.fsize, int):
195 def uri(self): 197 def uri(self):
196 sizestr = repr(self.fsize) 198 sizestr = repr(self.fsize)
197 if isinstance(self.fsize, int): 199 if isinstance(self.fsize, long):
198 sizestr = sizestr[:-1] 200 sizestr = sizestr[:-1]
199 return GNUNET_FS_URI_PREFIX + GNUNET_FS_URI_CHK_INFIX + \ 201 return GNUNET_FS_URI_PREFIX + GNUNET_FS_URI_CHK_INFIX + \
200 encode_data_to_string(bytearray(self.key)) + "." + \ 202 encode_data_to_string(bytearray(self.key)) + "." + \