summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-03-27 12:26:17 +0100
committerTorsten Marek <tmarek@google.com>2013-03-27 12:26:17 +0100
commit43a095f3d82f6ded5b79786fce06d25c4cf25457 (patch)
tree7d9b55dd78821580ccaee21da3ad5ad0c92cab16
parent4d20cfd473704c77f25b5c3be130900faf391e65 (diff)
downloadastroid-git-43a095f3d82f6ded5b79786fce06d25c4cf25457.tar.gz
Add missing modules in py2stdlib brain hashlib. Closes #123056
--HG-- branch : stable
-rw-r--r--ChangeLog1
-rw-r--r--brain/py2stdlib.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3458a088..e9e9eeb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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''