Issue #16694: Add a pure Python implementation of the operator module.

Patch by Zachary Ware.
This commit is contained in:
Antoine Pitrou 2013-04-20 19:21:44 +02:00
parent c9f5ca232a
commit a85017fbe3
10 changed files with 536 additions and 96 deletions

View file

@ -4,7 +4,7 @@ Implements the HMAC algorithm as described by RFC 2104.
"""
import warnings as _warnings
from operator import _compare_digest as compare_digest
from _operator import _compare_digest as compare_digest
trans_5C = bytes((x ^ 0x5C) for x in range(256))
trans_36 = bytes((x ^ 0x36) for x in range(256))