summaryrefslogtreecommitdiff
path: root/examples/mandel.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-16 19:13:30 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-16 19:29:11 +0200
commitc8742a06ca84528a45a2f5bad7d169694757f096 (patch)
treede6949518db165932196ea47645799a8c538724c /examples/mandel.py
parentd0db3d3e451089ef431321833b30bb2127cdcb7b (diff)
Add dummy micropython module to enable mandel.py run with CPython.
Diffstat (limited to 'examples/mandel.py')
-rw-r--r--examples/mandel.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/mandel.py b/examples/mandel.py
index 996132a91..d2b34fff8 100644
--- a/examples/mandel.py
+++ b/examples/mandel.py
@@ -1,3 +1,9 @@
+try:
+ import micropython
+except:
+ pass
+
+
def mandelbrot():
# returns True if c, complex, is in the Mandelbrot set
@micropython.native