From c8742a06ca84528a45a2f5bad7d169694757f096 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 16 Jan 2014 19:13:30 +0200 Subject: Add dummy micropython module to enable mandel.py run with CPython. --- examples/mandel.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/mandel.py') diff --git a/examples/mandel.py b/examples/mandel.py index 996132a915..d2b34fff83 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 -- cgit v1.2.3