projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d4454
)
Revert "Revert "PEP 237 unified long integers and integers: http://www.python.org...
author
Nils Gillmann
<ng0@n0.is>
Thu, 17 May 2018 16:27:27 +0000
(16:27 +0000)
committer
Nils Gillmann
<ng0@n0.is>
Thu, 17 May 2018 16:27:27 +0000
(16:27 +0000)
This reverts commit
d9d4454b10201c1c1e0da7e95069dd073571beac
.
Actually this is valid for python >= 2.2 and 3.x
contrib/gnunet-chk.py.in
patch
|
blob
|
history
diff --git
a/contrib/gnunet-chk.py.in
b/contrib/gnunet-chk.py.in
index f20153a8af7300c4776d54237de12b50b90d1d83..c976b2143d4abe28f16565a9612b5d663f37761f 100755
(executable)
--- 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)) + "." + \