diff options
author | Nils Gillmann <ng0@n0.is> | 2018-05-17 16:13:13 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-05-17 16:13:13 +0000 |
commit | d9d4454b10201c1c1e0da7e95069dd073571beac (patch) | |
tree | c7cafbf16c9f9ae44fc5f314c17716253766cda4 /contrib | |
parent | cb9b9edd88cb35f998e7d9dd9cd3f614189a582d (diff) | |
download | gnunet-d9d4454b10201c1c1e0da7e95069dd073571beac.tar.gz gnunet-d9d4454b10201c1c1e0da7e95069dd073571beac.zip |
Revert "PEP 237 unified long integers and integers: http://www.python.org/dev/peps/pep-0237/"
This reverts commit cb9b9edd88cb35f998e7d9dd9cd3f614189a582d.
Actually this is python3 only. A python2+3 variant must be used for now!
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gnunet-chk.py.in | 4 |
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)) + "." + \ |