[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit f27f95a610a8a44e8133d6ef81fc8e29a0779370
Author: ilv <ilv@xxxxxxxxxxxxxxxxxxxxxxxx>
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"\



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits