MicroPython: corrected some stub files.

Thu, 29 Aug 2019 19:05:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Aug 2019 19:05:30 +0200
changeset 8
f706499906b8
parent 7
e336d6afc5a6
child 9
843f5ea906d7

MicroPython: corrected some stub files.

MicroPython/esp.py file | annotate | diff | comparison | revisions
MicroPython/gc.py file | annotate | diff | comparison | revisions
MicroPython/sys.py file | annotate | diff | comparison | revisions
MicroPython/uhashlib.py file | annotate | diff | comparison | revisions
--- a/MicroPython/esp.py	Thu Aug 29 19:05:05 2019 +0200
+++ b/MicroPython/esp.py	Thu Aug 29 19:05:30 2019 +0200
@@ -20,12 +20,6 @@
 def flash_id():
     pass
 
-def flash_size():
-    pass
-
-def flash_user_start():
-    pass
-
 def flash_read(byte_offset, length_or_buffer):
     pass
 
--- a/MicroPython/gc.py	Thu Aug 29 19:05:05 2019 +0200
+++ b/MicroPython/gc.py	Thu Aug 29 19:05:30 2019 +0200
@@ -22,8 +22,5 @@
 def mem_free():
     pass
 
-def threshold():
+def threshold(amount=None):
     pass
-
-def threshold(amount):
-    pass
--- a/MicroPython/sys.py	Thu Aug 29 19:05:05 2019 +0200
+++ b/MicroPython/sys.py	Thu Aug 29 19:05:30 2019 +0200
@@ -7,15 +7,6 @@
 Module containing stubs for API generation of the 'sys' module.
 """
 
-def exit(retval=0):
-    pass
-
-def atexit(func):
-    pass
-
-def print_exception(exc, file=sys.stdout):
-    pass
-
 argv = []
 byteorder = ""
 implementation = tuple()
@@ -28,3 +19,12 @@
 stdout = 1
 version = ""
 version_info = tuple()
+
+def exit(retval=0):
+    pass
+
+def atexit(func):
+    pass
+
+def print_exception(exc, file=stdout):
+    pass
--- 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