~ubuntu-branches/ubuntu/saucy/bittornado/saucy

« back to all changes in this revision

Viewing changes to btdownloadgui.py

  • Committer: Bazaar Package Importer
  • Author(s): Ronny Cardona (Rcart)
  • Date: 2011-01-24 17:27:47 UTC
  • Revision ID: james.westby@ubuntu.com-20110124172747-j2en9t9kja4cgl06
Tags: 0.3.18-10ubuntu1
* debian/patches/32_use_hashlib_for_sha.patch:
  - Updated use of deprecated sha module to hashlib. (LP: #420387,
  Closes: #593653) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
from webbrowser import open_new
38
38
from traceback import print_exc
39
39
from StringIO import StringIO
40
 
from sha import sha
 
40
try:
 
41
    from hashlib import sha1 as sha
 
42
except ImportError:
 
43
    from sha import sha
41
44
import re
42
45
import sys, os
43
46
from BitTornado import version, createPeerID, report_email