[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Revert "Revert "PEP 237 uni
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Revert "Revert "PEP 237 unified long integers and integers: http://www.python.org/dev/peps/pep-0237/"" |
Date: |
Thu, 17 May 2018 18:27:35 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 93d2f7aa8 Revert "Revert "PEP 237 unified long integers and integers:
http://www.python.org/dev/peps/pep-0237/""
93d2f7aa8 is described below
commit 93d2f7aa829d921527efb92b10c12d64552e1f12
Author: Nils Gillmann <address@hidden>
AuthorDate: Thu May 17 16:27:27 2018 +0000
Revert "Revert "PEP 237 unified long integers and integers:
http://www.python.org/dev/peps/pep-0237/""
This reverts commit d9d4454b10201c1c1e0da7e95069dd073571beac.
Actually this is valid for python >= 2.2 and 3.x
---
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)) + "." + \
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Revert "Revert "PEP 237 unified long integers and integers: http://www.python.org/dev/peps/pep-0237/"",
gnunet <=