Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4acd02 commit ce6c101Copy full SHA for ce6c101
tests/basics/class_store_class.py
@@ -2,7 +2,10 @@
2
# There was a bug in MicroPython that under some conditions class stored
3
# in instance attribute later was returned "bound" as if it was a method,
4
# which caused class constructor to receive extra argument.
5
-from _collections import namedtuple
+try:
6
+ from collections import namedtuple
7
+except ImportError:
8
+ from _collections import namedtuple
9
10
_DefragResultBase = namedtuple('DefragResult', 'foo bar')
11
0 commit comments