Changeset 8edfc90


Ignore:
Timestamp:
2008-12-30T02:39:43Z (15 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
b820226
Parents:
a349932
Message:

skyped: use hashlib instead of sha (python2.6 warning)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    ra349932 r8edfc90  
    3030import getopt
    3131import Skype4Py
    32 import sha
     32import hashlib
    3333from ConfigParser import ConfigParser, NoOptionError
    3434from traceback import print_exception
     
    123123                        ret += 1
    124124                line = options.conn.recv(1024)
    125                 if line.startswith("PASSWORD") and sha.sha(line.split(' ')[1].strip()).hexdigest() == options.config.password:
     125                if line.startswith("PASSWORD") and hashlib.sha1(line.split(' ')[1].strip()).hexdigest() == options.config.password:
    126126                        ret += 1
    127127        except Exception, s:
Note: See TracChangeset for help on using the changeset viewer.