Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7c0a8fe
Base version of automated test marker
ShaharNaveh Aug 11, 2025
69ed76b
Remove debug code
ShaharNaveh Aug 11, 2025
dc3a6de
Add newline
ShaharNaveh Aug 11, 2025
5c09ef0
Apply RustPython patch
ShaharNaveh Aug 11, 2025
ad061b2
Convert to tool with args
ShaharNaveh Aug 20, 2025
a6f2324
Apply patch
ShaharNaveh Aug 22, 2025
302b3d1
Remove old script
ShaharNaveh Aug 22, 2025
db74d2f
Add textwrap.py
ShaharNaveh Aug 22, 2025
11694e3
ruff fmt
ShaharNaveh Aug 22, 2025
d8b4e26
Add more modules
ShaharNaveh Aug 22, 2025
2308a5a
Merge remote-tracking branch 'upstream/main' into auto-updater
ShaharNaveh Aug 25, 2025
2fb6842
Add `gen` subcommand
ShaharNaveh Aug 29, 2025
db5eb4b
Use `_generate_next_value_`
ShaharNaveh Aug 29, 2025
af1c28d
Gen & patch
ShaharNaveh Aug 30, 2025
42365d2
Remove old tool
ShaharNaveh Aug 30, 2025
fdce40b
Merge remote-tracking branch 'upstream/main' into auto-updater
ShaharNaveh Aug 30, 2025
32baa80
Revert changes under `Lib/`
ShaharNaveh Aug 30, 2025
fb7324d
Don't crash if cls renamed/moved
ShaharNaveh Aug 30, 2025
f4056ac
Update `Lib/test/test_os.py` with tool
ShaharNaveh Aug 30, 2025
4296b59
apply patch
ShaharNaveh Aug 30, 2025
e2aa220
Fix double assignment
ShaharNaveh Aug 30, 2025
74b47a0
Better args
ShaharNaveh Aug 30, 2025
51c6ad9
Update `test_list.py` as well
ShaharNaveh Aug 30, 2025
01a90ef
Less complex print
ShaharNaveh Aug 30, 2025
a0e56ae
Improve exoectedFailure match
ShaharNaveh Aug 30, 2025
43a63a8
fix list slice
ShaharNaveh Aug 30, 2025
3e2c1f1
Add __doc__ and to help
ShaharNaveh Sep 2, 2025
789cf6e
Merge remote-tracking branch 'upstream/main' into auto-updater
ShaharNaveh Sep 2, 2025
3e9872c
Update scripts/lib_updater.py
ShaharNaveh Sep 4, 2025
d0763e4
Clearer output arg
ShaharNaveh Sep 5, 2025
e00bb28
Don't crash on missing id
ShaharNaveh Sep 5, 2025
8a5875e
Merge remote-tracking branch 'upstream/main' into auto-updater
ShaharNaveh Sep 5, 2025
6c615cc
Merge remote-tracking branch 'origin/auto-updater' into auto-updater
ShaharNaveh Sep 5, 2025
c0e90cc
Fix comment regex
ShaharNaveh Sep 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert changes under Lib/
  • Loading branch information
ShaharNaveh committed Aug 30, 2025
commit 32baa80d7f9483c7b8e5450a3632332386940ce0
1 change: 0 additions & 1 deletion Lib/_colorize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
from __future__ import annotations
import io
import os
Expand Down
1 change: 0 additions & 1 deletion Lib/_ios_support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
import sys
try:
from ctypes import cdll, c_void_p, c_char_p, util
Expand Down
1 change: 0 additions & 1 deletion Lib/_osx_support.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Shared OS X support functions."""

import os
Expand Down
1 change: 0 additions & 1 deletion Lib/_py_abc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
from _weakrefset import WeakSet


Expand Down
3 changes: 1 addition & 2 deletions Lib/_pydecimal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Copyright (c) 2004 Python Software Foundation.
# All rights reserved.

Expand Down Expand Up @@ -6084,7 +6083,7 @@ def _convert_for_comparison(self, other, equality_op=False):
(?P<alt>\#)?
(?P<zeropad>0)?
(?P<minimumwidth>(?!0)\d+)?
(?P<thousands_sep>[,_])?
(?P<thousands_sep>,)?
(?:\.(?P<precision>0|(?!0)\d+))?
(?P<type>[eEfFgGn%])?
\Z
Expand Down
1 change: 0 additions & 1 deletion Lib/argparse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Author: Steven J. Bethard <[email protected]>.
# New maintainer as of 29 August 2019: Raymond Hettinger <[email protected]>

Expand Down
1 change: 0 additions & 1 deletion Lib/ast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""
The `ast` module helps Python applications to process trees of the Python
abstract syntax grammar. The abstract syntax itself might change with
Expand Down
1 change: 0 additions & 1 deletion Lib/calendar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Calendar printing functions

Note when comparing these calendars to the ones printed by cal(1): By
Expand Down
1 change: 0 additions & 1 deletion Lib/cmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""A generic class to build line-oriented command interpreters.

Interpreters constructed with this class obey the following conventions:
Expand Down
1 change: 0 additions & 1 deletion Lib/colorsys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Conversion functions between RGB and other color systems.

This modules provides two functions for each color system ABC:
Expand Down
1 change: 0 additions & 1 deletion Lib/csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7

r"""
CSV parsing and writing.
Expand Down
1 change: 0 additions & 1 deletion Lib/decimal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Decimal fixed-point and floating-point arithmetic.

This is an implementation of decimal floating-point arithmetic based on
Expand Down
5 changes: 2 additions & 3 deletions Lib/difflib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""
Module difflib -- helpers for computing deltas between objects.

Expand Down Expand Up @@ -79,8 +78,8 @@ class SequenceMatcher:
sequences. As a rule of thumb, a .ratio() value over 0.6 means the
sequences are close matches:

>>> print(round(s.ratio(), 2))
0.87
>>> print(round(s.ratio(), 3))
0.866
>>>

If you're only interested in where the sequences match,
Expand Down
1 change: 0 additions & 1 deletion Lib/fileinput.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Helper class to quickly write a loop over all standard input files.

Typical use is:
Expand Down
1 change: 0 additions & 1 deletion Lib/heapq.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Heap queue algorithm (a.k.a. priority queue).

Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for
Expand Down
1 change: 0 additions & 1 deletion Lib/ipaddress.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.

Expand Down
1 change: 0 additions & 1 deletion Lib/keyword.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Keywords (from "Grammar/python.gram")

This file is automatically generated; please don't muck it up!
Expand Down
1 change: 0 additions & 1 deletion Lib/linecache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Cache lines from Python source files.

This is intended to read lines from modules imported -- hence if a filename
Expand Down
1 change: 0 additions & 1 deletion Lib/netrc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""An object-oriented interface to .netrc files."""

# Module and documentation by Eric S. Raymond, 21 Dec 1998
Expand Down
1 change: 0 additions & 1 deletion Lib/ntpath.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Module 'ntpath' -- common operations on WinNT/Win95 pathnames
"""Common pathname manipulations, WindowsNT/95 version.

Expand Down
12 changes: 1 addition & 11 deletions Lib/numbers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.

Expand Down Expand Up @@ -291,27 +290,18 @@ def conjugate(self):


class Rational(Real):
"""To Real, Rational adds numerator and denominator properties.

The numerator and denominator values should be in lowest terms,
with a positive denominator.
"""
""".numerator and .denominator should be in lowest terms."""

__slots__ = ()

@property
@abstractmethod
def numerator(self):
"""The numerator of a rational number in lowest terms."""
raise NotImplementedError

@property
@abstractmethod
def denominator(self):
"""The denominator of a rational number in lowest terms.

This denominator should be positive.
"""
raise NotImplementedError

# Concrete implementation of Real's conversion to float.
Expand Down
1 change: 0 additions & 1 deletion Lib/operator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""
Operator Interface

Expand Down
3 changes: 1 addition & 2 deletions Lib/os.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
r"""OS routines for NT or Posix depending on what system we're on.

This exports:
Expand All @@ -11,7 +10,7 @@
- os.extsep is the extension separator (always '.')
- os.altsep is the alternate pathname separator (None or '/')
- os.pathsep is the component separator used in $PATH etc
- os.linesep is the line separator in text files ('\n' or '\r\n')
- os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
- os.defpath is the default search path for executables
- os.devnull is the file path of the null device ('/dev/null', etc.)

Expand Down
1 change: 0 additions & 1 deletion Lib/posixpath.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
"""Common operations on Posix pathnames.

Instead of importing this module directly, import os and refer to
Expand Down
1 change: 0 additions & 1 deletion Lib/pprint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
# Author: Fred L. Drake, Jr.
# [email protected]
#
Expand Down
12 changes: 6 additions & 6 deletions Lib/queue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# upstream_version: v3.13.7
'''A multi-producer, multi-consumer queue.'''

import threading
Expand Down Expand Up @@ -81,6 +80,9 @@ def task_done(self):
have been processed (meaning that a task_done() call was received
for every item that had been put() into the queue).

shutdown(immediate=True) calls task_done() for each remaining item in
the queue.

Raises a ValueError if called more times than there were items
placed in the queue.
'''
Expand Down Expand Up @@ -237,11 +239,9 @@ def shutdown(self, immediate=False):
By default, gets will only raise once the queue is empty. Set
'immediate' to True to make gets raise immediately instead.

All blocked callers of put() and get() will be unblocked.

If 'immediate', the queue is drained and unfinished tasks
is reduced by the number of drained tasks. If unfinished tasks
is reduced to zero, callers of Queue.join are unblocked.
All blocked callers of put() and get() will be unblocked. If
'immediate', a task is marked as done for each item remaining in
the queue, which may unblock callers of join().
'''
with self.mutex:
self.is_shutdown = True
Expand Down
Loading