diff options
author | Torsten Marek <tmarek@google.com> | 2013-07-24 08:52:53 +0200 |
---|---|---|
committer | Torsten Marek <tmarek@google.com> | 2013-07-24 08:52:53 +0200 |
commit | 014ee2d795f0596e620b02ae36fefb0b47313a5a (patch) | |
tree | 5a9b17628b7357064620bce7f4b844930af1847c /brain/py2stdlib.py | |
parent | 9427929322c30b7640523c4611c72717904227cc (diff) | |
download | astroid-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.py | 8 |
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): |