[tor-commits] [gettor/master] Forgot the [u'url'] to modify to the actual url strings, not the objects

ilv at torproject.org ilv at torproject.org
Tue Sep 22 23:39:13 UTC 2015


commit f27f95a610a8a44e8133d6ef81fc8e29a0779370
Author: ilv <ilv at users.noreply.github.com>
Date:   Tue Oct 28 22:03:04 2014 -0300

    Forgot the [u'url'] to modify to the actual url strings, not the objects
---
 dropbox.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dropbox.py b/dropbox.py
index 59f398c..7bf60cb 100644
--- a/dropbox.py
+++ b/dropbox.py
@@ -176,9 +176,9 @@ if __name__ == '__main__':
             # build links
             link_file = client.share(file, short_url=False)
             # if someone finds how to do this with the API, please tell me!
-            link_file = link_file.replace('?dl=0', '?dl=1')
+            link_file[u'url'] = link_file[u'url'].replace('?dl=0', '?dl=1')
             link_asc = client.share(asc, short_url=False)
-            link_asc = link_asc.replace('?dl=0', '?dl=1')
+            link_asc[u'url'] = link_asc[u'url'].replace('?dl=0', '?dl=1')
             osys, arch, lc = get_bundle_info(file)
 
             link = "Package (%s-bit): %s\nASC signature (%s-bit): %s\n"\





More information about the tor-commits mailing list