summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-09 00:42:32 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-09 00:42:32 +0300
commit3acace588a51b5f45a28ae3f63d662b6be0e8d4d (patch)
tree2df5fc459cec3ab9dc4d9ca16d5f2e0369dd899b /docs
parent1d74559b6b3eb1e9f0eb2aceceb898f6d24f5dd4 (diff)
downloadmicropython-3acace588a51b5f45a28ae3f63d662b6be0e8d4d.tar.gz
micropython-3acace588a51b5f45a28ae3f63d662b6be0e8d4d.zip
docs/utime: Deconditionalize description of sleep().
Diffstat (limited to 'docs')
-rw-r--r--docs/library/utime.rst18
1 files changed, 5 insertions, 13 deletions
diff --git a/docs/library/utime.rst b/docs/library/utime.rst
index 980fefe13b..871f6c678d 100644
--- a/docs/library/utime.rst
+++ b/docs/library/utime.rst
@@ -55,20 +55,12 @@ Functions
which expresses a time as per localtime. It returns an integer which is
the number of seconds since Jan 1, 2000.
-.. only:: port_unix or port_pyboard or port_esp8266
+.. function:: sleep(seconds)
- .. function:: sleep(seconds)
-
- Sleep for the given number of seconds. Seconds can be a floating-point number to
- sleep for a fractional number of seconds. Note that other MicroPython ports may
- not accept floating-point argument, for compatibility with them use ``sleep_ms()``
- and ``sleep_us()`` functions.
-
-.. only:: port_wipy
-
- .. function:: sleep(seconds)
-
- Sleep for the given number of seconds.
+ Sleep for the given number of seconds. Some boards may accept `seconds` as a
+ floating-point number to sleep for a fractional number of seconds. Note that
+ other boards may not accept a floating-point argument, for compatibility with
+ them use ``sleep_ms()`` and ``sleep_us()`` functions.
.. function:: sleep_ms(ms)