diff options
author | Torsten Marek <tmarek@google.com> | 2013-03-27 12:26:17 +0100 |
---|---|---|
committer | Torsten Marek <tmarek@google.com> | 2013-03-27 12:26:17 +0100 |
commit | 43a095f3d82f6ded5b79786fce06d25c4cf25457 (patch) | |
tree | 7d9b55dd78821580ccaee21da3ad5ad0c92cab16 | |
parent | 4d20cfd473704c77f25b5c3be130900faf391e65 (diff) | |
download | astroid-git-43a095f3d82f6ded5b79786fce06d25c4cf25457.tar.gz |
Add missing modules in py2stdlib brain hashlib. Closes #123056
--HG--
branch : stable
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | brain/py2stdlib.py | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,7 @@ Change log for the astng package -- * #123062 [pylint-brain]: Use correct names for keywords for urlparse + * #123056 [pylint-brain]: Add missing methods for hashlib 2013-02-27 -- 0.24.2 * pylint-brain: more subprocess.Popen faking (see #46273) diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py index 976cef46..50ba5576 100644 --- a/brain/py2stdlib.py +++ b/brain/py2stdlib.py @@ -15,11 +15,17 @@ def hashlib_transform(module): class md5(object): def __init__(self, value): pass + def digest(): + return u'' + def update(self, value): pass def hexdigest(self): return u'' class sha1(object): def __init__(self, value): pass + def digest(): + return u'' + def update(self, value): pass def hexdigest(self): return u'' |