kopia lustrzana https://github.com/micropython/micropython-lib
collections: Rename collections.* to collections-*.
This is to match the convention for naming "extension" packages. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>pull/537/head
rodzic
c262628a41
commit
f1039fd2f2
|
@ -2,4 +2,5 @@ metadata(version="0.3")
|
||||||
|
|
||||||
# Originally written by Paul Sokolovsky.
|
# Originally written by Paul Sokolovsky.
|
||||||
|
|
||||||
|
require("collections")
|
||||||
package("collections")
|
package("collections")
|
|
@ -1,3 +1,4 @@
|
||||||
metadata(version="0.1.3")
|
metadata(version="0.1.3")
|
||||||
|
|
||||||
|
require("collections")
|
||||||
package("collections")
|
package("collections")
|
|
@ -1,9 +1,7 @@
|
||||||
# Should be reimplemented for MicroPython
|
# Replace built-in collections module.
|
||||||
# Reason:
|
|
||||||
# CPython implementation brings in metaclasses and other bloat.
|
|
||||||
# This is going to be just import-all for other modules in a namespace package
|
|
||||||
from ucollections import *
|
from ucollections import *
|
||||||
|
|
||||||
|
# Provide optional dependencies (which may be installed separately).
|
||||||
try:
|
try:
|
||||||
from .defaultdict import defaultdict
|
from .defaultdict import defaultdict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Ładowanie…
Reference in New Issue