| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,8 +197,8 @@ def get_read_buffer_size(self): | |||
| 197 | 197 | return self._ssl_protocol._get_read_buffer_size() | |
| 198 | 198 | ||
| 199 | 199 | 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 | ||
| 202 | 202 | positive number of bytes.""" | |
| 203 | 203 | return self._ssl_protocol._transport.get_write_buffer_limits() | |
| 204 | 204 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,8 +100,8 @@ def get_write_buffer_size(self): | |||
| 100 | 100 | raise NotImplementedError | |
| 101 | 101 | ||
| 102 | 102 | 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 | ||
| 105 | 105 | positive number of bytes.""" | |
| 106 | 106 | raise NotImplementedError | |
| 107 | 107 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ | |||
| 43 | 43 | # The following flags match the values from Include/cpython/compile.h | |
| 44 | 44 | # Caveat emptor: These flags are undocumented on purpose and depending | |
| 45 | 45 | # on their effect outside the standard library is **unsupported**. | |
| 46 | - PyCF_DONT_IMPLY_DEDENT = 0x200 | ||
| 46 | + PyCF_DONT_IMPLY_DEDENT = 0x200 | ||
| 47 | 47 | PyCF_ALLOW_INCOMPLETE_INPUT = 0x4000 | |
| 48 | 48 | ||
| 49 | 49 | def _maybe_compile(compiler, source, filename, symbol): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -282,7 +282,7 @@ def wait(fs, timeout=None, return_when=ALL_COMPLETED): | |||
| 282 | 282 | A named 2-tuple of sets. The first set, named 'done', contains the | |
| 283 | 283 | futures that completed (is finished or cancelled) before the wait | |
| 284 | 284 | 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 | ||
| 286 | 286 | returned only once. | |
| 287 | 287 | """ | |
| 288 | 288 | fs = set(fs) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -390,7 +390,7 @@ def _write_atomic(path, data, mode=0o666): | |||
| 390 | 390 | # Python 3.11a5 3481 (Use inline cache for BINARY_OP) | |
| 391 | 391 | # Python 3.11a5 3482 (Use inline caching for UNPACK_SEQUENCE and LOAD_GLOBAL) | |
| 392 | 392 | # 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 | ||
| 394 | 394 | # STORE_ATTR) | |
| 395 | 395 | # Python 3.11a5 3485 (Add an oparg to GET_AWAITABLE) | |
| 396 | 396 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -93,8 +93,8 @@ async def wait_closed(self): | |||
| 93 | 93 | class SendfileBase: | |
| 94 | 94 | ||
| 95 | 95 | # 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 | ||
| 98 | 98 | # has some form of buffering for this which is less than 256KiB | |
| 99 | 99 | # on newer server versions and Windows 11. | |
| 100 | 100 | # So DATA should be larger than 256 KiB to make this test reliable. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1630,8 +1630,8 @@ def fib(n): | |||
| 1630 | 1630 | self.assertEqual(compile(s1, '<string>', 'exec'), compile(s2, '<string>', 'exec')) | |
| 1631 | 1631 | except SyntaxError: | |
| 1632 | 1632 | 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): | ||
| 1635 | 1635 | # Check that code that breaks indentation across multiple lines raises a syntax error | |
| 1636 | 1636 | ||
| 1637 | 1637 | code = r"""\ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2511,8 +2511,8 @@ def get_tokens(string): | |||
| 2511 | 2511 | ||
| 2512 | 2512 | self.assertRaises(SyntaxError, get_tokens, "("*1000+"a"+")"*1000) | |
| 2513 | 2513 | self.assertRaises(SyntaxError, get_tokens, "]") | |
| 2514 | - | ||
| 2515 | - def test_continuation_lines_indentation(self): | ||
| 2514 | + | ||
| 2515 | + def test_continuation_lines_indentation(self): | ||
| 2516 | 2516 | def get_tokens(string): | |
| 2517 | 2517 | return [(kind, string) for (kind, string, *_) in _generate_tokens_from_c_tokenizer(string)] | |
| 2518 | 2518 | ||
@@ -2551,7 +2551,7 @@ def fib(n): | |||
| 2551 | 2551 | '''Print a Fibonacci series up to n.''' | |
| 2552 | 2552 | a, b = 0, 1 | |
| 2553 | 2553 | """) | |
| 2554 | - | ||
| 2554 | + | ||
| 2555 | 2555 | self.assertEqual(get_tokens(code), get_tokens(code_no_cont)) | |
| 2556 | 2556 | ||
| 2557 | 2557 | code = dedent(""" | |
@@ -2572,7 +2572,7 @@ def fib(n): | |||
| 2572 | 2572 | pass | |
| 2573 | 2573 | pass | |
| 2574 | 2574 | """) | |
| 2575 | - | ||
| 2575 | + | ||
| 2576 | 2576 | self.assertEqual(get_tokens(code), get_tokens(code_no_cont)) | |
| 2577 | 2577 | ||
| 2578 | 2578 | code = dedent(""" | |
@@ -2609,7 +2609,7 @@ def fib(n): | |||
| 2609 | 2609 | """) | |
| 2610 | 2610 | ||
| 2611 | 2611 | self.assertEqual(get_tokens(code), get_tokens(code_no_cont)) | |
| 2612 | - | ||
| 2612 | + | ||
| 2613 | 2613 | ||
| 2614 | 2614 | if __name__ == "__main__": | |
| 2615 | 2615 | unittest.main() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2930,8 +2930,8 @@ def fun(x: a): | |||
| 2930 | 2930 | ||
| 2931 | 2931 | def test_forward_repr(self): | |
| 2932 | 2932 | 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')]") | ||
| 2935 | 2935 | ||
| 2936 | 2936 | def test_union_forward(self): | |
| 2937 | 2937 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | #endif | |
| 19 | 19 | ||
| 20 | 20 | #include "Python.h" | |
| 21 | - #include "pycore_strhex.h" // _Py_strhex() | ||
| 21 | + #include "pycore_strhex.h" // _Py_strhex() | ||
| 22 | 22 | ||
| 23 | 23 | #include "../hashlib.h" | |
| 24 | 24 | #include "blake2ns.h" | |
@@ -37,6 +37,7 @@ | |||
| 37 | 37 | #include "impl/blake2s-ref.c" | |
| 38 | 38 | #endif | |
| 39 | 39 | ||
| 40 | + | ||
| 40 | 41 | extern PyType_Spec blake2s_type_spec; | |
| 41 | 42 | ||
| 42 | 43 | typedef struct { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments