Skip to content

Commit 6927632

Browse files
Remove trailing spaces (GH-31695)
1 parent ab9301a commit 6927632

File tree

13 files changed

+24
-23
lines changed

13 files changed

+24
-23
lines changed

Lib/asyncio/sslproto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def get_read_buffer_size(self):
197197
return self._ssl_protocol._get_read_buffer_size()
198198

199199
def get_write_buffer_limits(self):
200-
"""Get the high and low watermarks for write flow control.
201-
Return a tuple (low, high) where low and high are
200+
"""Get the high and low watermarks for write flow control.
201+
Return a tuple (low, high) where low and high are
202202
positive number of bytes."""
203203
return self._ssl_protocol._transport.get_write_buffer_limits()
204204

Lib/asyncio/transports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def get_write_buffer_size(self):
100100
raise NotImplementedError
101101

102102
def get_write_buffer_limits(self):
103-
"""Get the high and low watermarks for write flow control.
104-
Return a tuple (low, high) where low and high are
103+
"""Get the high and low watermarks for write flow control.
104+
Return a tuple (low, high) where low and high are
105105
positive number of bytes."""
106106
raise NotImplementedError
107107

Lib/codeop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# The following flags match the values from Include/cpython/compile.h
4444
# Caveat emptor: These flags are undocumented on purpose and depending
4545
# on their effect outside the standard library is **unsupported**.
46-
PyCF_DONT_IMPLY_DEDENT = 0x200
46+
PyCF_DONT_IMPLY_DEDENT = 0x200
4747
PyCF_ALLOW_INCOMPLETE_INPUT = 0x4000
4848

4949
def _maybe_compile(compiler, source, filename, symbol):

Lib/concurrent/futures/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def wait(fs, timeout=None, return_when=ALL_COMPLETED):
282282
A named 2-tuple of sets. The first set, named 'done', contains the
283283
futures that completed (is finished or cancelled) before the wait
284284
completed. The second set, named 'not_done', contains uncompleted
285-
futures. Duplicate futures given to *fs* are removed and will be
285+
futures. Duplicate futures given to *fs* are removed and will be
286286
returned only once.
287287
"""
288288
fs = set(fs)

Lib/importlib/_bootstrap_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _write_atomic(path, data, mode=0o666):
390390
# Python 3.11a5 3481 (Use inline cache for BINARY_OP)
391391
# Python 3.11a5 3482 (Use inline caching for UNPACK_SEQUENCE and LOAD_GLOBAL)
392392
# Python 3.11a5 3483 (Use inline caching for COMPARE_OP and BINARY_SUBSCR)
393-
# Python 3.11a5 3484 (Use inline caching for LOAD_ATTR, LOAD_METHOD, and
393+
# Python 3.11a5 3484 (Use inline caching for LOAD_ATTR, LOAD_METHOD, and
394394
# STORE_ATTR)
395395
# Python 3.11a5 3485 (Add an oparg to GET_AWAITABLE)
396396

Lib/test/test_asyncio/test_sendfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ async def wait_closed(self):
9393
class SendfileBase:
9494

9595
# 256 KiB plus small unaligned to buffer chunk
96-
# Newer versions of Windows seems to have increased its internal
97-
# buffer and tries to send as much of the data as it can as it
96+
# Newer versions of Windows seems to have increased its internal
97+
# buffer and tries to send as much of the data as it can as it
9898
# has some form of buffering for this which is less than 256KiB
9999
# on newer server versions and Windows 11.
100100
# So DATA should be larger than 256 KiB to make this test reliable.

Lib/test/test_syntax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,8 +1630,8 @@ def fib(n):
16301630
self.assertEqual(compile(s1, '<string>', 'exec'), compile(s2, '<string>', 'exec'))
16311631
except SyntaxError:
16321632
self.fail("Indented statement over multiple lines is valid")
1633-
1634-
def test_continuation_bad_indentation(self):
1633+
1634+
def test_continuation_bad_indentation(self):
16351635
# Check that code that breaks indentation across multiple lines raises a syntax error
16361636

16371637
code = r"""\

Lib/test/test_tokenize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,8 +2511,8 @@ def get_tokens(string):
25112511

25122512
self.assertRaises(SyntaxError, get_tokens, "("*1000+"a"+")"*1000)
25132513
self.assertRaises(SyntaxError, get_tokens, "]")
2514-
2515-
def test_continuation_lines_indentation(self):
2514+
2515+
def test_continuation_lines_indentation(self):
25162516
def get_tokens(string):
25172517
return [(kind, string) for (kind, string, *_) in _generate_tokens_from_c_tokenizer(string)]
25182518

@@ -2551,7 +2551,7 @@ def fib(n):
25512551
'''Print a Fibonacci series up to n.'''
25522552
a, b = 0, 1
25532553
""")
2554-
2554+
25552555
self.assertEqual(get_tokens(code), get_tokens(code_no_cont))
25562556

25572557
code = dedent("""
@@ -2572,7 +2572,7 @@ def fib(n):
25722572
pass
25732573
pass
25742574
""")
2575-
2575+
25762576
self.assertEqual(get_tokens(code), get_tokens(code_no_cont))
25772577

25782578
code = dedent("""
@@ -2609,7 +2609,7 @@ def fib(n):
26092609
""")
26102610

26112611
self.assertEqual(get_tokens(code), get_tokens(code_no_cont))
2612-
2612+
26132613

26142614
if __name__ == "__main__":
26152615
unittest.main()

Lib/test/test_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,8 +2930,8 @@ def fun(x: a):
29302930

29312931
def test_forward_repr(self):
29322932
self.assertEqual(repr(List['int']), "typing.List[ForwardRef('int')]")
2933-
self.assertEqual(repr(List[ForwardRef('int', module='mod')]),
2934-
"typing.List[ForwardRef('int', module='mod')]")
2933+
self.assertEqual(repr(List[ForwardRef('int', module='mod')]),
2934+
"typing.List[ForwardRef('int', module='mod')]")
29352935

29362936
def test_union_forward(self):
29372937

Modules/_blake2/blake2s_impl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#endif
1919

2020
#include "Python.h"
21-
#include "pycore_strhex.h" // _Py_strhex()
21+
#include "pycore_strhex.h" // _Py_strhex()
2222

2323
#include "../hashlib.h"
2424
#include "blake2ns.h"
@@ -37,6 +37,7 @@
3737
#include "impl/blake2s-ref.c"
3838
#endif
3939

40+
4041
extern PyType_Spec blake2s_type_spec;
4142

4243
typedef struct {

Python/fileutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ join_relfile(wchar_t *buffer, size_t bufsize,
20932093
const wchar_t *dirname, const wchar_t *relfile)
20942094
{
20952095
#ifdef MS_WINDOWS
2096-
if (FAILED(PathCchCombineEx(buffer, bufsize, dirname, relfile,
2096+
if (FAILED(PathCchCombineEx(buffer, bufsize, dirname, relfile,
20972097
PATHCCH_ALLOW_LONG_PATHS))) {
20982098
return -1;
20992099
}

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)
10771077
PyTypeObject *owner_cls = Py_TYPE(owner);
10781078

10791079
if (PyModule_CheckExact(owner)) {
1080-
assert(INLINE_CACHE_ENTRIES_LOAD_ATTR <=
1080+
assert(INLINE_CACHE_ENTRIES_LOAD_ATTR <=
10811081
INLINE_CACHE_ENTRIES_LOAD_METHOD);
10821082
int err = specialize_module_load_attr(owner, instr, name, LOAD_METHOD,
10831083
LOAD_METHOD_MODULE);

Tools/scripts/freeze_modules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
FROZEN_ONLY = os.path.join(ROOT_DIR, 'Tools', 'freeze', 'flag.py')
1919

2020
STDLIB_DIR = os.path.join(ROOT_DIR, 'Lib')
21-
# If FROZEN_MODULES_DIR or DEEPFROZEN_MODULES_DIR is changed then the
21+
# If FROZEN_MODULES_DIR or DEEPFROZEN_MODULES_DIR is changed then the
2222
# .gitattributes and .gitignore files needs to be updated.
2323
FROZEN_MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'frozen_modules')
2424
DEEPFROZEN_MODULES_DIR = os.path.join(ROOT_DIR, 'Python', 'deepfreeze')
@@ -732,4 +732,4 @@ def main():
732732

733733

734734
if __name__ == '__main__':
735-
main()
735+
main()

0 commit comments

Comments
 (0)