Fix small bug in Python example code

A few dictionary keys needed to be quoted
This commit is contained in:
Paul Kernfeld 2015-12-23 13:45:41 +01:00
parent fb9d788bf9
commit d0ff29bcfb
2 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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()