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

@@ -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)