MicroPython/uhashlib.py

changeset 8
f706499906b8
parent 2
2c3f30af031d
diff -r e336d6afc5a6 -r f706499906b8 MicroPython/uhashlib.py
--- a/MicroPython/uhashlib.py	Thu Aug 29 19:05:05 2019 +0200
+++ b/MicroPython/uhashlib.py	Thu Aug 29 19:05:30 2019 +0200
@@ -8,7 +8,7 @@
 """
 
 class sha1():
-    def __init__(self, data=bytes()):
+    def __init__(self, data=None):
         pass
     
     def update(self, data):
@@ -18,7 +18,7 @@
         pass
 
 class sha256():
-    def __init__(self, data=bytes()):
+    def __init__(self, data=None):
         pass
     
     def update(self, data):
@@ -28,7 +28,7 @@
         pass
 
 class md5():
-    def __init__(self, data=bytes()):
+    def __init__(self, data=None):
         pass
     
     def update(self, data):

eric ide

mercurial