[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25751 - gnunet-update/src/gnunet_update
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25751 - gnunet-update/src/gnunet_update |
Date: |
Fri, 11 Jan 2013 10:22:17 +0100 |
Author: harsha
Date: 2013-01-11 10:22:17 +0100 (Fri, 11 Jan 2013)
New Revision: 25751
Modified:
gnunet-update/src/gnunet_update/hashtree.py
Log:
- fix
Modified: gnunet-update/src/gnunet_update/hashtree.py
===================================================================
--- gnunet-update/src/gnunet_update/hashtree.py 2013-01-10 13:47:57 UTC (rev
25750)
+++ gnunet-update/src/gnunet_update/hashtree.py 2013-01-11 09:22:17 UTC (rev
25751)
@@ -57,10 +57,13 @@
self.fsize = size
def uri(self):
+ sizestr = repr (self.fsize)
+ if isinstance (self.fsize, long):
+ sizestr = sizestr[:-1]
return GNUNET_FS_URI_PREFIX + GNUNET_FS_URI_CHK_INFIX + \
util.encode_data_to_string(bytearray(self.key)) + "." + \
util.encode_data_to_string(bytearray(self.query)) + "." + \
- repr(self.fsize)
+ sizestr
def compute_depth_(size):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25751 - gnunet-update/src/gnunet_update,
gnunet <=