Here are the examples of the python api pyzor.digest.digest_spec taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
def __init__(self, accounts=None, timeout=None, spec=None):
if accounts is None:
accounts = {}
self.accounts = dict(((host, int(port)), account)
for (host, port), account in accounts.items())
if spec is None:
spec = pyzor.digest.digest_spec
self.spec = spec
if timeout is not None:
self.timeout = timeout
self.log = logging.getLogger("pyzor")