all: Prune trailing whitespace.

Prune trailing whitespace across the whole project (almost), done
automatically with:

    grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\
        xargs sed -i 's/[[:space:]]*$//'

Exceptions:
- Skip third-party code in lib/ and drivers/cc3100/
- Skip generated code in bluetooth_init_cc2564C_1.5.c
- Preserve command output whitespace in docs, eg:
  docs/esp8266/tutorial/repl.rst

Signed-off-by: Phil Howard <phil@gadgetoid.com>
This commit is contained in:
Phil Howard
2024-02-29 00:27:06 +00:00
committed by Damien George
parent decf8e6a8b
commit dda9b9c6da
53 changed files with 386 additions and 386 deletions

View File

@@ -177,7 +177,7 @@ internal_bench/bytebuf:
## Test key/certificates
SSL/TLS tests in `multi_net` and `net_inet` use a
SSL/TLS tests in `multi_net` and `net_inet` use a
self-signed key/cert pair that is randomly generated and to be used for
testing/demonstration only. You should always generate your own key/cert.

View File

@@ -2,7 +2,7 @@
def gen():
yield 123
yield 456
g = gen()
print(next(g))
try:
@@ -31,7 +31,7 @@ def gen():
except GeneratorExit as e:
print('GeneratorExit', repr(e.args))
yield 456
# thrown a class
g = gen()
print(next(g))

View File

@@ -1,4 +1,4 @@
# test + +
# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
& 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
& 9487909752)
# test - -
# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
& -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -1,4 +1,4 @@
# test - +
# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
& 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
& 9487909752)
# test + -
# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
& -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -3,7 +3,7 @@ print(0 | (1 << 80))
a = 0xfffffffffffffffffffffffffffff
print(a | (1 << 200))
# test + +
# test + +
print(0 | (1 << 80))
print((1 << 80) | (1 << 80))
@@ -15,7 +15,7 @@ print(a | (1 << 200))
print(a | a == 0)
print(bool(a | a))
# test - +
# test - +
print((-1 << 80) | (1 << 80))
print((-1 << 80) | 0)
@@ -25,7 +25,7 @@ print((-a) | (1 << 200))
print((-a) | a == 0)
print(bool((-a) | a))
# test + -
# test + -
print(0 | (-1 << 80))
print((1 << 80) | (-1 << 80))
@@ -35,7 +35,7 @@ print(a | (-1 << 200))
print(a | (-a) == 0)
print(bool(a | (-a)))
# test - -
# test - -
print((-1 << 80) | (-1 << 80))

View File

@@ -1,4 +1,4 @@
# test + +
# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
| 23716683549865351578586448630079789776107310103486834795830390982)
@@ -23,7 +23,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
| 9487909752)
# test - -
# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
| -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -1,4 +1,4 @@
# test - +
# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
| 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
| 9487909752)
# test + -
# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
| -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -1,4 +1,4 @@
# test + +
# test + +
print(0 ^ (1 << 80))
print((1 << 80) ^ (1 << 80))
@@ -10,7 +10,7 @@ print(a ^ (1 << 200))
print(a ^ a == 0)
print(bool(a ^ a))
# test - +
# test - +
print((-1 << 80) ^ (1 << 80))
print((-1 << 80) ^ 0)
@@ -22,7 +22,7 @@ print(bool((-a) ^ a))
i = -1
print(i ^ 0xffffffffffffffff) # carry overflows to higher digit
# test + -
# test + -
print(0 ^ (-1 << 80))
print((1 << 80) ^ (-1 << 80))
@@ -32,7 +32,7 @@ print(a ^ (-1 << 200))
print(a ^ (-a) == 0)
print(bool(a ^ (-a)))
# test - -
# test - -
print((-1 << 80) ^ (-1 << 80))

View File

@@ -1,4 +1,4 @@
# test + +
# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
^ 9487909752)
# test - -
# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
^ -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -1,4 +1,4 @@
# test - +
# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
^ 9487909752)
# test + -
# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
^ -23716683549865351578586448630079789776107310103486834795830390982)

View File

@@ -1,147 +1,147 @@
{
"info": {
"maintainer": null,
"docs_url": "",
"requires_python": null,
"maintainer_email": null,
"cheesecake_code_kwalitee_id": null,
"keywords": null,
"package_url": "http://pypi.python.org/pypi/micropython-uasyncio",
"author": "MicroPython Developers",
"author_email": "micro-python@googlegroups.com",
"download_url": "UNKNOWN",
"platform": "UNKNOWN",
"version": "0.8.1",
"cheesecake_documentation_id": null,
"_pypi_hidden": false,
"description": "Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.",
"release_url": "http://pypi.python.org/pypi/micropython-uasyncio/0.8.1",
"maintainer": null,
"docs_url": "",
"requires_python": null,
"maintainer_email": null,
"cheesecake_code_kwalitee_id": null,
"keywords": null,
"package_url": "http://pypi.python.org/pypi/micropython-uasyncio",
"author": "MicroPython Developers",
"author_email": "micro-python@googlegroups.com",
"download_url": "UNKNOWN",
"platform": "UNKNOWN",
"version": "0.8.1",
"cheesecake_documentation_id": null,
"_pypi_hidden": false,
"description": "Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.",
"release_url": "http://pypi.python.org/pypi/micropython-uasyncio/0.8.1",
"downloads": {
"last_month": 942,
"last_week": 173,
"last_month": 942,
"last_week": 173,
"last_day": 29
},
"_pypi_ordering": 6,
"classifiers": [],
"name": "micropython-uasyncio",
"bugtrack_url": null,
"license": "MIT",
"summary": "uasyncio module for MicroPython",
"home_page": "https://github.com/micropython/micropython/issues/405",
"stable_version": null,
},
"_pypi_ordering": 6,
"classifiers": [],
"name": "micropython-uasyncio",
"bugtrack_url": null,
"license": "MIT",
"summary": "uasyncio module for MicroPython",
"home_page": "https://github.com/micropython/micropython/issues/405",
"stable_version": null,
"cheesecake_installability_id": null
},
},
"releases": {
"0.8": [
{
"has_sig": false,
"upload_time": "2015-01-01T23:52:41",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.tar.gz",
"md5_digest": "5df4d0d6b5fdb7c05fc418e5785e1336",
"downloads": 352,
"filename": "micropython-uasyncio-0.8.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2015-01-01T23:52:41",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.tar.gz",
"md5_digest": "5df4d0d6b5fdb7c05fc418e5785e1336",
"downloads": 352,
"filename": "micropython-uasyncio-0.8.tar.gz",
"packagetype": "sdist",
"size": 2476
}
],
],
"0.6.2": [
{
"has_sig": false,
"upload_time": "2014-10-18T11:26:52",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.2.tar.gz",
"md5_digest": "c85fa7c11ef437f4e73c1fcd639db066",
"downloads": 475,
"filename": "micropython-uasyncio-0.6.2.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2014-10-18T11:26:52",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.2.tar.gz",
"md5_digest": "c85fa7c11ef437f4e73c1fcd639db066",
"downloads": 475,
"filename": "micropython-uasyncio-0.6.2.tar.gz",
"packagetype": "sdist",
"size": 3262
}
],
],
"0.6.1": [
{
"has_sig": false,
"upload_time": "2014-10-11T02:21:17",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.1.tar.gz",
"md5_digest": "48cb0db7d8249d5f4a86db9c4b302d03",
"downloads": 507,
"filename": "micropython-uasyncio-0.6.1.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2014-10-11T02:21:17",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.1.tar.gz",
"md5_digest": "48cb0db7d8249d5f4a86db9c4b302d03",
"downloads": 507,
"filename": "micropython-uasyncio-0.6.1.tar.gz",
"packagetype": "sdist",
"size": 3237
}
],
],
"0.8.1": [
{
"has_sig": false,
"upload_time": "2015-01-04T20:02:03",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
"md5_digest": "940d2647b8355289d54de543ff710b05",
"downloads": 249,
"filename": "micropython-uasyncio-0.8.1.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2015-01-04T20:02:03",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
"md5_digest": "940d2647b8355289d54de543ff710b05",
"downloads": 249,
"filename": "micropython-uasyncio-0.8.1.tar.gz",
"packagetype": "sdist",
"size": 2484
}
],
],
"0.7": [
{
"has_sig": false,
"upload_time": "2014-10-23T22:02:11",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.tar.gz",
"md5_digest": "81250a0ee6649b5117878d5788ba96d3",
"downloads": 457,
"filename": "micropython-uasyncio-0.7.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2014-10-23T22:02:11",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.tar.gz",
"md5_digest": "81250a0ee6649b5117878d5788ba96d3",
"downloads": 457,
"filename": "micropython-uasyncio-0.7.tar.gz",
"packagetype": "sdist",
"size": 2277
}
],
],
"0.7.1": [
{
"has_sig": false,
"upload_time": "2014-11-04T00:56:16",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.1.tar.gz",
"md5_digest": "21eda0501142830730cd82e1b0fa1a33",
"downloads": 412,
"filename": "micropython-uasyncio-0.7.1.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2014-11-04T00:56:16",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.1.tar.gz",
"md5_digest": "21eda0501142830730cd82e1b0fa1a33",
"downloads": 412,
"filename": "micropython-uasyncio-0.7.1.tar.gz",
"packagetype": "sdist",
"size": 2474
}
],
],
"0.6": [
{
"has_sig": false,
"upload_time": "2014-08-27T00:17:45",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.tar.gz",
"md5_digest": "9d0b15108c5ade3a6902c9370c9dacf1",
"downloads": 668,
"filename": "micropython-uasyncio-0.6.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2014-08-27T00:17:45",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.tar.gz",
"md5_digest": "9d0b15108c5ade3a6902c9370c9dacf1",
"downloads": 668,
"filename": "micropython-uasyncio-0.6.tar.gz",
"packagetype": "sdist",
"size": 3246
}
]
},
},
"urls": [
{
"has_sig": false,
"upload_time": "2015-01-04T20:02:03",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
"md5_digest": "940d2647b8355289d54de543ff710b05",
"downloads": 249,
"filename": "micropython-uasyncio-0.8.1.tar.gz",
"packagetype": "sdist",
"has_sig": false,
"upload_time": "2015-01-04T20:02:03",
"comment_text": "",
"python_version": "source",
"url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
"md5_digest": "940d2647b8355289d54de543ff710b05",
"downloads": 249,
"filename": "micropython-uasyncio-0.8.1.tar.gz",
"packagetype": "sdist",
"size": 2484
}
]

View File

@@ -1,7 +1,7 @@
"""
This test need a set of pins which can be set as inputs and have no external
"""
This test need a set of pins which can be set as inputs and have no external
pull up or pull down connected.
GP12 and GP17 must be connected together
GP12 and GP17 must be connected together
"""
from machine import Pin
import os

View File

@@ -1,5 +1,5 @@
"""
UART test for the CC3200 based boards.
UART test for the CC3200 based boards.
UART0 and UART1 must be connected together for this test to pass.
"""