Skip to content

Commit 489d544

Browse files
authored
Merge branch 'main' into restore-set-event-loop-policy-to-asyncio-run
2 parents 35e746f + 47e3562 commit 489d544

32 files changed

Lines changed: 138 additions & 47 deletions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Verify bundled pip and setuptools
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- 'Lib/ensurepip/_bundled/**'
8+
- '.github/workflows/verify-ensurepip-wheels.yml'
9+
- 'Tools/scripts/verify_ensurepip_wheels.py'
10+
pull_request:
11+
paths:
12+
- 'Lib/ensurepip/_bundled/**'
13+
- '.github/workflows/verify-ensurepip-wheels.yml'
14+
- 'Tools/scripts/verify_ensurepip_wheels.py'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
verify:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version: '3'
27+
- name: Compare checksums of bundled pip and setuptools to ones published on PyPI
28+
run: ./Tools/scripts/verify_ensurepip_wheels.py

Doc/includes/email-headers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Import the email modules we'll need
2-
from email.parser import BytesParser, Parser
2+
#from email.parser import BytesParser
3+
from email.parser import Parser
34
from email.policy import default
45

56
# If the e-mail headers are in a file, uncomment these two lines:

Doc/tools/extensions/asdl_highlight.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import os
21
import sys
32
from pathlib import Path
43

54
CPYTHON_ROOT = Path(__file__).resolve().parent.parent.parent.parent
65
sys.path.append(str(CPYTHON_ROOT / "Parser"))
76

87
from pygments.lexer import RegexLexer, bygroups, include, words
9-
from pygments.token import (Comment, Generic, Keyword, Name, Operator,
8+
from pygments.token import (Comment, Keyword, Name, Operator,
109
Punctuation, Text)
1110

1211
from asdl import builtin_types

Doc/tools/extensions/peg_highlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pygments.lexer import RegexLexer, bygroups, include
2-
from pygments.token import Comment, Generic, Keyword, Name, Operator, Punctuation, Text
2+
from pygments.token import Comment, Keyword, Name, Operator, Punctuation, Text
33

44
from sphinx.highlighting import lexers
55

Doc/tools/extensions/pyspecific.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from sphinx.util import status_iterator, logging
3131
from sphinx.util.nodes import split_explicit_title
3232
from sphinx.writers.text import TextWriter, TextTranslator
33-
from sphinx.writers.latex import LaTeXTranslator
3433

3534
try:
3635
from sphinx.domains.python import PyFunction, PyMethod

Doc/tutorial/whatnow.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ the set are:
3131
More Python resources:
3232

3333
* https://www.python.org: The major Python web site. It contains code,
34-
documentation, and pointers to Python-related pages around the web. This web
35-
site is mirrored in various places around the world, such as Europe, Japan, and
36-
Australia; a mirror may be faster than the main site, depending on your
37-
geographical location.
34+
documentation, and pointers to Python-related pages around the web.
3835

3936
* https://docs.python.org: Fast access to Python's documentation.
4037

Lib/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
5151
from math import tau as TWOPI, floor as _floor, isfinite as _isfinite
5252
from os import urandom as _urandom
53-
from _collections_abc import Set as _Set, Sequence as _Sequence
53+
from _collections_abc import Sequence as _Sequence
5454
from operator import index as _index
5555
from itertools import accumulate as _accumulate, repeat as _repeat
5656
from bisect import bisect as _bisect

Lib/test/test_asyncio/test_unix_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import socket
1010
import stat
1111
import sys
12-
import tempfile
1312
import threading
1413
import unittest
1514
from unittest import mock

Lib/test/test_ctypes/test_parameters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
class SimpleTypesTestCase(unittest.TestCase):
66

77
def setUp(self):
8-
import ctypes
98
try:
109
from _ctypes import set_conversion_mode
1110
except ImportError:

Lib/test/test_sqlite3/test_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# misrepresented as being the original software.
2121
# 3. This notice may not be removed or altered from any source distribution.
2222

23-
import os, unittest
23+
import unittest
2424
import sqlite3 as sqlite
2525

2626
from test.support import LOOPBACK_TIMEOUT

0 commit comments

Comments
 (0)