Ticket #86: torrent_pickle.py

File torrent_pickle.py, 193 bytes (added by deluge-trac@…, 16 years ago)

make torrents.state file understandable

Line 
1import pickle
2
3state = pickle.loads(open("torrents.state").read())
4
5for t in state.torrents:
6    for attr in dir(t):
7        if attr[1] != "_":
8            print attr + ": ", getattr(t, attr)
9