Commit c5fb72e
authored
pythongh-129813, PEP 782: Use PyBytesWriter in _winapi.PeekNamedPipe() (python#138930)
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.1 parent dfd52e7 commit c5fb72e
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1920 | 1920 | | |
1921 | 1921 | | |
1922 | 1922 | | |
1923 | | - | |
1924 | 1923 | | |
1925 | 1924 | | |
1926 | 1925 | | |
| |||
1930 | 1929 | | |
1931 | 1930 | | |
1932 | 1931 | | |
1933 | | - | |
1934 | | - | |
| 1932 | + | |
| 1933 | + | |
1935 | 1934 | | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1936 | 1938 | | |
1937 | | - | |
| 1939 | + | |
1938 | 1940 | | |
1939 | 1941 | | |
1940 | 1942 | | |
1941 | | - | |
| 1943 | + | |
1942 | 1944 | | |
1943 | 1945 | | |
1944 | | - | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
1945 | 1949 | | |
1946 | | - | |
| 1950 | + | |
| 1951 | + | |
1947 | 1952 | | |
1948 | 1953 | | |
1949 | 1954 | | |
| |||
0 commit comments