summaryrefslogtreecommitdiff
path: root/brain/py2stdlib.py
diff options
context:
space:
mode:
authorTorsten Marek <tmarek@google.com>2013-07-24 08:52:53 +0200
committerTorsten Marek <tmarek@google.com>2013-07-24 08:52:53 +0200
commit014ee2d795f0596e620b02ae36fefb0b47313a5a (patch)
tree5a9b17628b7357064620bce7f4b844930af1847c /brain/py2stdlib.py
parent9427929322c30b7640523c4611c72717904227cc (diff)
downloadastroid-git-014ee2d795f0596e620b02ae36fefb0b47313a5a.tar.gz
Update some function definitions in py2stdlib's hashlib stub module
and make sure AST transforms without a predicate always match. Test all this in a new testcase.
Diffstat (limited to 'brain/py2stdlib.py')
-rw-r--r--brain/py2stdlib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py
index cea3a79f..53a9b8af 100644
--- a/brain/py2stdlib.py
+++ b/brain/py2stdlib.py
@@ -29,16 +29,16 @@ def hashlib_transform(module):
fake = AstroidBuilder(MANAGER).string_build('''
class md5(object):
- def __init__(self, value): pass
- def digest():
+ def __init__(self, value=''): pass
+ def digest(self):
return u''
def update(self, value): pass
def hexdigest(self):
return u''
class sha1(object):
- def __init__(self, value): pass
- def digest():
+ def __init__(self, value=''): pass
+ def digest(self):
return u''
def update(self, value): pass
def hexdigest(self):