8000 all: Prune trailing whitespace. · micropython/micropython@9df5e33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9df5e33

Browse files
committed
all: Prune trailing whitespace.
Prune trailing whitespace across the whole project, this is done automatically with: grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\ xargs sed -i 's/[[:space:]]*$//' Signed-off-by: Phil Howard <phil@gadgetoid.com>
1 parent 8692d26 commit 9df5e33

File tree

113 files changed

+2748
-2748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2748
-2748
lines changed

.github/workflows/ports_windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ jobs:
5656
- uses: actions/setup-python@v5
5757
if: matrix.runner == 'windows-2019'
5858
with:
59-
python-version: '3.9'
59+
python-version: '3.9'
6060
- uses: actions/checkout@v4
6161
- name: Build mpy-cross.exe
6262
run: msbuild mpy-cross\mpy-cross.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }}
6363
- name: Update submodules
6464
run: git submodule update --init lib/micropython-lib
6565
- name: Build micropython.exe
66-
run: msbuild ports\windows\micropython.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
66+
run: msbuild ports\windows\micropython.vcxproj -maxcpucount -property:Configuration=${{ matrix.configuration }} -property:Platform=${{ matrix.platform }} -property:PyVariant=${{ matrix.variant }}
6767
- name: Get micropython.exe path
6868
id: get_path
6969
run: |
@@ -123,7 +123,7 @@ jobs:
123123
msystem: ${{ matrix.sys }}
124124
update: true
125125
install: >-
126-
make
126+
make
127127
mingw-w64-${{ matrix.env }}-gcc
128128
pkg-config
129129
python3

docs/develop/gettingstarted.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ Check that you have Python available on your system:
112112
.. code-block:: bash
113113
114114
$ python3
115-
Python 3.5.0 (default, Jul 17 2020, 14:04:10)
115+
Python 3.5.0 (default, Jul 17 2020, 14:04:10)
116116
[GCC 5.4.0 20160609] on linux
117117
Type "help", "copyright", "credits" or "license" for more information.
118-
>>>
118+
>>>
119119
120120
All supported ports have different dependency requirements, see their respective
121121
`readme files <https://github.com/micropython/micropython/tree/master/ports>`_.

docs/differences/python_37.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ Changes to built-in modules:
105105

106106
.. rubric:: Notes
107107

108-
.. [#ftimenanosec] Only :func:`time.time_ns` is implemented.
108+
.. [#ftimenanosec] Only :func:`time.time_ns` is implemented.

docs/esp8266/tutorial/repl.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ function::
144144

145145
>>> def toggle(p):
146146
... p.value(not p.value())
147-
...
148-
...
149-
...
147+
...
148+
...
149+
...
150150
>>>
151151

152152
In the above, you needed to press the Enter key three times in a row to finish
@@ -169,9 +169,9 @@ print some text instead of calling toggle, to see the effect)::
169169
>>> while True:
170170
... toggle(pin)
171171
... time.sleep_ms(500)
172-
...
173-
...
174-
...
172+
...
173+
...
174+
...
175175
>>>
176176

177177
This will toggle the LED at 1Hz (half a second on, half a second off). To stop
@@ -189,7 +189,7 @@ paste a chunk of text into the REPL. If you press ctrl-E you will see the
189189
paste-mode prompt::
190190

191191
paste mode; Ctrl-C to cancel, Ctrl-D to finish
192-
===
192+
===
193193

194194
You can then paste (or type) your text in. Note that none of the special keys
195195
or commands work in paste mode (eg Tab or backspace), they are just accepted

docs/library/machine.ADCBlock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Constructors
2626

2727
Access the ADC peripheral identified by *id*, which may be an integer
2828
or string.
29-
29+
3030
The *bits* argument, if given, sets the resolution in bits of the
3131
conversion process. If not specified then the previous or default
3232
resolution is used.

docs/library/machine.PWM.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Specific PWM class implementations
8686

8787
The following concrete class(es) implement enhancements to the PWM class.
8888

89-
| :ref:`pyb.Timer for PyBoard <pyb.Timer>`
89+
| :ref:`pyb.Timer for PyBoard <pyb.Timer>`
9090
9191
Limitations of PWM
9292
------------------
@@ -103,7 +103,7 @@ Limitations of PWM
103103
Some ports like the RP2040 one use a fractional divider, which allow a finer
104104
granularity of the frequency at higher frequencies by switching the PWM
105105
pulse duration between two adjacent values, such that the resulting average
106-
frequency is more close to the intended one, at the cost of spectral purity.
106+
frequency is more close to the intended one, at the cost of spectral purity.
107107

108108
* The duty cycle has the same discrete nature and its absolute accuracy is not
109109
achievable. On most hardware platforms the duty will be applied at the next

docs/mimxrt/pinout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ MIXMXRT1050-EVKB D10/-/D11/D12/D13 (*) - -
319319
MIXMXRT1060-EVK D10/-/D11/D12/D13 (*) - -
320320
MIXMXRT1064-EVK D10/-/D11/D12/D13 (*) - -
321321
MIXMXRT1170-EVK D10/-/D11/D12/D13 D28/-/D25/D24/D26 -/-/D14/D15/D24
322-
Adafruit Metro M7 -/-/MOSI/MISO/SCK - -
322+
Adafruit Metro M7 -/-/MOSI/MISO/SCK - -
323323
Olimex RT1010Py - CS0/-/SDO/SDI/SCK SDCARD with CS1
324324
Seeed ARCH MIX J4_12/-/J4_14/J4_13/J4_15 J3_09/J3_05/J3_08_J3_11
325325
================= ========================= ======================= ===============
@@ -375,7 +375,7 @@ Teensy 4.0 2 33 4 3 2 - - 5
375375
Teensy 4.1 1 23 26 27 7 21 20 8
376376
Teensy 4.1 2 33 4 3 2 - - 5
377377
Seeed Arch MIX 1 J4_09 J4_14 J4_15 J14_13 J4_11 J4_10 J4_10
378-
Adafruit Metro M7 1 D8 D10 D9 D12 D14 D15 D13
378+
Adafruit Metro M7 1 D8 D10 D9 D12 D14 D15 D13
379379
Olimex RT1010Py 1 D8 D6 D7 D4 D1 D2 D3
380380
Olimex RT1010Py 3 - D10 D9 D11 - - -
381381
MIMXRT_DEV 1 "MCK" "SCK_TX" "WS_TX" "SD_TX" "SCK_RX" "WS_RX" "SD_RX"

docs/mimxrt/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ rates (up to 30Mhz). Hardware SPI is accessed via the
309309
For the assignment of Pins to SPI signals, refer to
310310
:ref:`Hardware SPI pinout <mimxrt_spi_pinout>`.
311311
The keyword option cs=n can be used to enable the cs pin 0 or 1 for an automatic cs signal. The
312-
default is cs=-1. Using cs=-1 the automatic cs signal is not created.
312+
default is cs=-1. Using cs=-1 the automatic cs signal is not created.
313313
In that case, cs has to be set by the script. Clearing that assignment requires a power cycle.
314314

315315
Notes:

docs/pyboard/tutorial/repl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Resetting the board
9595
If something goes wrong, you can reset the board in two ways. The first is to press CTRL-D
9696
at the MicroPython prompt, which performs a soft reset. You will see a message something like ::
9797

98-
>>>
98+
>>>
9999
MPY: sync filesystems
100100
MPY: soft reboot
101101
Micro Python v1.0 on 2014-05-03; PYBv1.0 with STM32F405RG

docs/samd/pinout.rst

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,44 @@ Adafruit ItsyBitsy M0 Express pin assignment table
1717
=== ==== ============ ==== ==== ====== ====== ====== ======
1818
Pin GPIO Pin name IRQ ADC Serial Serial TCC/TC TCC/TC
1919
=== ==== ============ ==== ==== ====== ====== ====== ======
20-
2 PA02 A0 2 0 - - - -
21-
40 PB08 A1 8 2 - 4/0 4/0 -
22-
41 PB09 A2 9 3 - 4/1 4/1 -
23-
4 PA04 A3 4 4 - 0/0 0/0 -
24-
5 PA05 A4 5 5 - 0/1 0/1 -
25-
34 PB02 A5 2 10 - 5/0 6/0 -
20+
2 PA02 A0 2 0 - - - -
21+
40 PB08 A1 8 2 - 4/0 4/0 -
22+
41 PB09 A2 9 3 - 4/1 4/1 -
23+
4 PA04 A3 4 4 - 0/0 0/0 -
24+
5 PA05 A4 5 5 - 0/1 0/1 -
25+
34 PB02 A5 2 10 - 5/0 6/0 -
2626
11 PA11 D0 11 19 0/3 2/3 1/1 0/3
2727
10 PA10 D1 10 18 0/2 2/2 1/0 0/2
2828
14 PA14 D2 14 - 2/2 4/2 3/0 0/4
2929
9 PA09 D3 9 17 0/1 2/1 0/1 1/3
3030
8 PA08 D4 - 16 0/0 2/0 0/0 1/2
3131
15 PA15 D5 15 - 2/3 4/3 3/1 0/5
3232
21 PA21 D7 5 - 5/3 3/3 7/1 0/7
33-
7 PA07 D9 7 7 - 0/3 1/1 -
33+
7 PA07 D9 7 7 - 0/3 1/1 -
3434
18 PA18 D10 2 - 1/2 3/2 3/0 0/2
3535
16 PA16 D11 0 - 1/0 3/0 2/0 0/6
3636
19 PA19 D12 3 - 1/3 3/3 3/1 0/3
3737
17 PA17 D13 1 - 1/1 3/1 2/1 0/7
38-
0 PA00 DOTSTAR_CLK 0 - - 1/0 2/0 -
39-
1 PA01 DOTSTAR_DATA 1 - - 1/1 2/1 -
40-
27 PA27 FLASH_CS 15 - - - - -
41-
35 PB03 FLASH_MISO 3 11 - 5/1 6/1 -
42-
54 PB22 FLASH_MOSI 6 - - 5/2 7/0 -
43-
55 PB23 FLASH_SCK 7 - - 5/3 7/1 -
38+
0 PA00 DOTSTAR_CLK 0 - - 1/0 2/0 -
39+
1 PA01 DOTSTAR_DATA 1 - - 1/1 2/1 -
40+
27 PA27 FLASH_CS 15 - - - - -
41+
35 PB03 FLASH_MISO 3 11 - 5/1 6/1 -
42+
54 PB22 FLASH_MOSI 6 - - 5/2 7/0 -
43+
55 PB23 FLASH_SCK 7 - - 5/3 7/1 -
4444
12 PA12 MISO 12 - 2/0 4/0 2/0 0/6
4545
42 PB10 MOSI 10 - - 4/2 5/0 0/4
4646
43 PB11 SCK 11 - - 4/3 5/1 0/5
4747
23 PA23 SCL 7 - 3/1 5/1 4/1 0/5
4848
22 PA22 SDA 6 - 3/0 5/0 4/0 0/4
49-
30 PA30 SWCLK 10 - - 1/2 1/0 -
50-
31 PA31 SWDIO 11 - - 1/3 1/1 -
49+
30 PA30 SWCLK 10 - - 1/2 1/0 -
50+
31 PA31 SWDIO 11 - - 1/3 1/1 -
5151
24 PA24 USB_DM 12 - 3/2 5/2 5/0 1/2
5252
25 PA25 USB_DP 13 - 3/3 5/3 5/1 1/3
53-
3 PA03 3 1 - - - -
54-
6 PA06 6 6 - 0/2 1/0 -
53+
3 PA03 3 1 - - - -
54+
6 PA06 6 6 - 0/2 1/0 -
5555
13 PA13 13 - 2/1 4/1 2/0 0/7
5656
20 PA20 4 - 5/2 3/2 7/0 0/4
57-
28 PA28 8 - - - - -
57+
28 PA28 8 - - - - -
5858
=== ==== ============ ==== ==== ====== ====== ====== ======
5959

6060

@@ -348,12 +348,12 @@ Adafruit Metro M4 Airlift pin assignment table
348348
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
349349
Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
350350
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
351-
2 PA02 A0 2 0 - - - - - -
352-
5 PA05 A1 5 5 - - 0/1 0/1 - -
353-
6 PA06 A2 6 6 - - 0/2 1/0 - -
354-
32 PB00 A3 9 12 - - 5/2 7/0 - -
355-
40 PB08 A4 8 2 0 - 4/0 4/0 - -
356-
41 PB09 A5 9 3 1 - 4/1 4/1 - -
351+
2 PA02 A0 2 0 - - - - - -
352+
5 PA05 A1 5 5 - - 0/1 0/1 - -
353+
6 PA06 A2 6 6 - - 0/2 1/0 - -
354+
32 PB00 A3 9 12 - - 5/2 7/0 - -
355+
40 PB08 A4 8 2 0 - 4/0 4/0 - -
356+
41 PB09 A5 9 3 1 - 4/1 4/1 - -
357357
23 PA23 D0 7 - - 3/1 5/0 4/1 1/7 0/3
358358
22 PA22 D1 6 - - 3/0 5/1 4/0 1/6 0/2
359359
49 PB17 D2 1 - - 5/1 - 6/1 3/1 0/5
@@ -364,17 +364,17 @@ Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
364364
44 PB12 D7 12 - - 4/0 - 4/0 3/0 0/0
365365
21 PA21 D8 5 - - 5/3 3/3 7/1 1/5 0/1
366366
20 PA20 D9 4 - - 5/2 3/2 7/0 1/4 0/0
367-
3 PA03 AREF 3 10 - - - - - -
367+
3 PA03 AREF 3 10 - - - - - -
368368
18 PA18 D10 2 - - 1/2 3/2 3/0 1/2 0/6
369369
19 PA19 D11 3 - - 1/3 3/3 3/1 1/3 0/7
370370
16 PA16 D13 0 - - 1/0 3/1 2/0 1/0 0/4
371-
36 PB04 ESP_BUSY 4 - 6 - - - - -
371+
36 PB04 ESP_BUSY 4 - 6 - - - - -
372372
15 PA15 ESP_CS 15 - - 2/3 4/3 3/1 2/1 1/3
373-
33 PB01 ESP_GPIO0 1 13 - - 5/3 7/1 - -
374-
37 PB05 ESP_RESET 5 - 7 - - - - -
375-
55 PB23 ESP_RTS 7 - - 1/3 5/3 7/1 - -
376-
7 PA07 ESP_RX 7 7 - - 0/3 1/1 - -
377-
4 PA04 ESP_TX 4 4 - - 0/0 0/0 - -
373+
33 PB01 ESP_GPIO0 1 13 - - 5/3 7/1 - -
374+
37 PB05 ESP_RESET 5 - 7 - - - - -
375+
55 PB23 ESP_RTS 7 - - 1/3 5/3 7/1 - -
376+
7 PA07 ESP_RX 7 7 - - 0/3 1/1 - -
377+
4 PA04 ESP_TX 4 4 - - 0/0 0/0 - -
378378
43 PB11 FLASH_CS 12 - - - 4/3 5/1 0/5 1/1
379379
11 PA11 FLASH_HOLD 11 11 - 0/3 2/3 1/1 0/3 1/7
380380
9 PA09 FLASH_MISO 9 9 3 0/1 2/0 0/1 0/1 1/5
@@ -383,21 +383,21 @@ Pin GPIO Pin name IRQ ADC ADC Serial Serial TC PWM PWM
383383
10 PA10 FLASH_WP 10 10 - 0/2 2/2 1/0 0/2 1/6
384384
14 PA14 MISO 14 - - 2/2 4/2 3/0 2/0 1/2
385385
12 PA12 MOSI 12 - - 2/0 4/1 2/0 0/6 1/2
386-
54 PB22 NEOPIXEL 22 - - 1/2 5/2 7/0 - -
387-
38 PB06 RXLED 6 - 8 - - - - -
386+
54 PB22 NEOPIXEL 22 - - 1/2 5/2 7/0 - -
387+
38 PB06 RXLED 6 - 8 - - - - -
388388
13 PA13 SCK 13 - - 2/1 4/0 2/1 0/7 1/3
389-
35 PB03 SCL 9 15 - - 5/1 6/1 - -
390-
34 PB02 SDA 2 14 - - 5/0 6/0 2/2 -
391-
30 PA30 SWCLK 14 - - 7/2 1/2 6/0 2/0 -
392-
31 PA31 SWDIO 15 - - 7/3 1/3 6/1 2/1 -
389+
35 PB03 SCL 9 15 - - 5/1 6/1 - -
390+
34 PB02 SDA 2 14 - - 5/0 6/0 2/2 -
391+
30 PA30 SWCLK 14 - - 7/2 1/2 6/0 2/0 -
392+
31 PA31 SWDIO 15 - - 7/3 1/3 6/1 2/1 -
393393
62 PB30 SWO 14 - - 7/0 5/1 0/0 4/0 0/6
394-
39 PB07 TXLED 7 - 9 - - - - -
395-
24 PA24 USB_DM 8 - - 3/2 5/2 5/0 2/2 -
396-
25 PA25 USB_DP 9 - - 3/3 5/3 5/1 - -
394+
39 PB07 TXLED 7 - 9 - - - - -
395+
24 PA24 USB_DM 8 - - 3/2 5/2 5/0 2/2 -
396+
25 PA25 USB_DP 9 - - 3/3 5/3 5/1 - -
397397
17 PA17 USB_HOSTEN 1 - - 1/1 3/0 2/1 1/1 0/5
398-
0 PA00 - 0 - - - 1/0 2/0 - -
399-
1 PA01 - 1 - - - 1/1 2/1 - -
400-
27 PA27 - 11 - - - - - - -
398+
0 PA00 - 0 - - - 1/0 2/0 - -
399+
1 PA01 - 1 - - - 1/1 2/1 - -
400+
27 PA27 - 11 - - - - - - -
401401
63 PB31 - 15 - - 7/1 5/0 0/1 4/1 0/7
402402
=== ==== ============ ==== ==== ==== ====== ====== ===== ===== =====
403403

docs/wipy/tutorial/repl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Resetting the board
119119
If something goes wrong, you can reset the board in two ways. The first is to press CTRL-D
120120
at the MicroPython prompt, which performs a soft reset. You will see a message something like::
121121

122-
>>>
122+
>>>
123123
MPY: soft reboot
124124
MicroPython v1.4.6-146-g1d8b5e5 on 2015-10-21; WiPy with CC3200
125125
Type "help()" for more information.

0 commit comments

Comments
 (0)
0