Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from __future__ import with_statement
- from contextlib import closing
- import gio
- gfile = gio.File("http://ca.isohunt.com/download/271795297/debian.torrent")
- with closing(gfile.read()) as stream:
- content = stream.read()
- print 'Torrent content: %s' % content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement