From d0ff29bcfbc756c2b85ca75d282a8aef2e856982 Mon Sep 17 00:00:00 2001 From: Paul Kernfeld Date: Wed, 23 Dec 2015 13:45:41 +0100 Subject: [PATCH] Fix small bug in Python example code A few dictionary keys needed to be quoted --- docs/python_binding.html | 6 +++--- docs/python_binding.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/python_binding.html b/docs/python_binding.html index 2726db78f..633a60bb3 100644 --- a/docs/python_binding.html +++ b/docs/python_binding.html @@ -151,9 +151,9 @@ ses.listen_on(6881, 6891) e = lt.bdecode(open("test.torrent", 'rb').read()) info = lt.torrent_info(e) -params = { save_path: '.', \ - storage_mode: lt.storage_mode_t.storage_mode_sparse, \ - ti: info } +params = { 'save_path': '.', \ + 'storage_mode': lt.storage_mode_t.storage_mode_sparse, \ + 'ti': info } h = ses.add_torrent(params) s = h.status() diff --git a/docs/python_binding.rst b/docs/python_binding.rst index c55d8b67c..61f1960da 100644 --- a/docs/python_binding.rst +++ b/docs/python_binding.rst @@ -122,9 +122,9 @@ A very simple example usage of the module would be something like this:: e = lt.bdecode(open("test.torrent", 'rb').read()) info = lt.torrent_info(e) - params = { save_path: '.', \ - storage_mode: lt.storage_mode_t.storage_mode_sparse, \ - ti: info } + params = { 'save_path': '.', \ + 'storage_mode': lt.storage_mode_t.storage_mode_sparse, \ + 'ti': info } h = ses.add_torrent(params) s = h.status()