Skip to content

Commit df4e1d1

Browse files
committed
docs/library: Consistently use admonitions for CPython differences.
1 parent 31300b5 commit df4e1d1

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/library/usocket.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ Methods
171171
The socket must be in blocking mode; it can have a timeout, but the file object’s internal buffer
172172
may end up in a inconsistent state if a timeout occurs.
173173

174-
.. note::
174+
.. admonition:: Difference to CPython
175+
:class: attention
175176

176-
**CPython difference:** closing the file object returned by makefile() WILL close the
177+
Closing the file object returned by makefile() WILL close the
177178
original socket as well.
178179

179180
.. method:: socket.read(size)

docs/library/utime.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ Functions
100100
if you need calendar time, ``localtime()`` without argument is the best possibility
101101
to get it.
102102

103-
.. note::
103+
.. admonition:: Difference to CPython
104+
:class: attention
104105

105-
**CPython difference:** In CPython, this function returns number of
106+
In CPython, this function returns number of
106107
seconds since Unix epoch, 1970-01-01 00:00 UTC, as a floating-point,
107108
usually having microsecond precision. With MicroPython, only Unix port
108109
uses the same reference point, and if floating-point precision allows,

0 commit comments

Comments
 (0)