exceptions

This commit is contained in:
Alon Zakai
2006-12-02 12:47:16 +00:00
parent 17ea0c2e6b
commit ae72c2c902
3 changed files with 49 additions and 41 deletions

View File

@@ -12,13 +12,13 @@
import pytorrent
from time import sleep
pytorrent.init("PT", 0, 5, 0, 0, "pytorrent")
pytorrent.init("PT", 0, 5, 0, 0, "pytorrent - testing only")
myTorrent = pytorrent.addTorrent("ubuntu.torrent")
myTorrent = pytorrent.add_torrent("ubuntu.torrent", ".", True)
while True:
print "STATE:"
print pytorrent.getState(myTorrent)
print pytorrent.get_state(myTorrent)
print ""
sleep(1)