Skip to content

Commit ab8a5be

Browse files
Fix links to old SF bugs (#95648)
1 parent 5b6acba commit ab8a5be

16 files changed

+23
-23
lines changed

Lib/test/crashers/infinite_loop_re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# This was taken from http://python.org/sf/1541697
2+
# This was taken from https://bugs.python.org/issue1541697
33
# It's not technically a crasher. It may not even truly be infinite,
44
# however, I haven't waited a long time to see the result. It takes
55
# 100% of CPU while running this and should be fixed.

Lib/test/test_configparser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def basic_test(self, cf):
114114

115115
# The use of spaces in the section names serves as a
116116
# regression test for SourceForge bug #583248:
117-
# http://www.python.org/sf/583248
117+
# https://bugs.python.org/issue583248
118118

119119
# API access
120120
eq(cf.get('Foo Bar', 'foo'), 'bar1')
@@ -932,7 +932,7 @@ def test_items(self):
932932
('name', 'value')])
933933

934934
def test_safe_interpolation(self):
935-
# See http://www.python.org/sf/511737
935+
# See https://bugs.python.org/issue511737
936936
cf = self.fromstring("[section]\n"
937937
"option1{eq}xxx\n"
938938
"option2{eq}%(option1)s/xxx\n"

Lib/test/test_ctypes/test_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class S8I(Structure):
371371
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
372372

373373
def test_sf1651235(self):
374-
# see https://www.python.org/sf/1651235
374+
# see https://bugs.python.org/issue1651235
375375

376376
proto = CFUNCTYPE(c_int, RECT, POINT)
377377
def callback(*args):

Lib/test/test_ctypes/test_loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_1703286_A(self):
9393
# NOT fit into a 32-bit integer. FreeLibrary must be able
9494
# to accept this address.
9595

96-
# These are tests for https://www.python.org/sf/1703286
96+
# These are tests for https://bugs.python.org/issue1703286
9797
handle = LoadLibrary("advapi32")
9898
FreeLibrary(handle)
9999

Lib/test/test_descr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def __delattr__(self, name):
845845
("getattr", "foo"),
846846
("delattr", "foo")])
847847

848-
# http://python.org/sf/1174712
848+
# https://bugs.python.org/issue1174712
849849
try:
850850
class Module(types.ModuleType, str):
851851
pass

Lib/test/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def testSetBufferSize(self):
217217
self._checkBufferSize(1)
218218

219219
def testTruncateOnWindows(self):
220-
# SF bug <http://www.python.org/sf/801631>
220+
# SF bug <https://bugs.python.org/issue801631>
221221
# "file.truncate fault on windows"
222222

223223
f = self.open(TESTFN, 'wb')

Lib/test/test_fileio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def testTruncate(self):
503503

504504
def testTruncateOnWindows(self):
505505
def bug801631():
506-
# SF bug <http://www.python.org/sf/801631>
506+
# SF bug <https://bugs.python.org/issue801631>
507507
# "file.truncate fault on windows"
508508
f = self.FileIO(TESTFN, 'w')
509509
f.write(bytes(range(11)))

Lib/test/test_getopt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_do_longs(self):
8383

8484
# Much like the preceding, except with a non-alpha character ("-") in
8585
# option name that precedes "="; failed in
86-
# http://python.org/sf/126863
86+
# https://bugs.python.org/issue126863
8787
opts, args = getopt.do_longs([], 'foo=42', ['foo-bar', 'foo=',], [])
8888
self.assertEqual(opts, [('--foo', '42')])
8989
self.assertEqual(args, [])

Lib/test/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ def test_selectors(self):
15921592
s = a[-5:]
15931593
s = a[:-1]
15941594
s = a[-4:-3]
1595-
# A rough test of SF bug 1333982. http://python.org/sf/1333982
1595+
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
15961596
# The testing here is fairly incomplete.
15971597
# Test cases should include: commas with 1 and 2 colons
15981598
d = {}

Lib/test/test_lib2to3/data/py2_test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def testSelectors(self):
735735
s = a[-5:]
736736
s = a[:-1]
737737
s = a[-4:-3]
738-
# A rough test of SF bug 1333982. https://python.org/sf/1333982
738+
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
739739
# The testing here is fairly incomplete.
740740
# Test cases should include: commas with 1 and 2 colons
741741
d = {}

Lib/test/test_lib2to3/data/py3_test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def testSelectors(self):
714714
s = a[-5:]
715715
s = a[:-1]
716716
s = a[-4:-3]
717-
# A rough test of SF bug 1333982. https://python.org/sf/1333982
717+
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
718718
# The testing here is fairly incomplete.
719719
# Test cases should include: commas with 1 and 2 colons
720720
d = {}

Lib/test/test_pyexpat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def test(self):
508508

509509
class sf1296433Test(unittest.TestCase):
510510
def test_parse_only_xml_data(self):
511-
# http://python.org/sf/1296433
511+
# https://bugs.python.org/issue1296433
512512
#
513513
xml = "<?xml version='1.0' encoding='iso8859'?><s>%s</s>" % ('a' * 1025)
514514
# this one doesn't crash

Lib/test/test_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def test_remove(self):
427427
self.assertRaises(KeyError, self.s.remove, self.thetype(self.word))
428428

429429
def test_remove_keyerror_unpacking(self):
430-
# bug: www.python.org/sf/1576657
430+
# https://bugs.python.org/issue1576657
431431
for v1 in ['Q', (1,)]:
432432
try:
433433
self.s.remove(v1)

Lib/test/test_urllib2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,11 +1556,11 @@ def test_proxy_basic_auth(self):
15561556

15571557
def test_basic_and_digest_auth_handlers(self):
15581558
# HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*
1559-
# response (http://python.org/sf/1479302), where it should instead
1559+
# response (https://bugs.python.org/issue1479302), where it should instead
15601560
# return None to allow another handler (especially
15611561
# HTTPBasicAuthHandler) to handle the response.
15621562

1563-
# Also (http://python.org/sf/14797027, RFC 2617 section 1.2), we must
1563+
# Also (https://bugs.python.org/issue14797027, RFC 2617 section 1.2), we must
15641564
# try digest first (since it's the strongest auth scheme), so we record
15651565
# order of calls here to check digest comes first:
15661566
class RecordingOpenerDirector(OpenerDirector):

Misc/HISTORY

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21790,7 +21790,7 @@ Library
2179021790
x == y is False, and x != y is True. This is akin to the change made
2179121791
for mixed-type comparisons of datetime objects in 2.3a2; more info
2179221792
about the rationale is in the NEWS entry for that. See also SF bug
21793-
report <http://www.python.org/sf/693121>.
21793+
report <https://bugs.python.org/issue693121>.
2179421794

2179521795
- On Unix platforms, if os.listdir() is called with a Unicode argument,
2179621796
it now returns Unicode strings. (This behavior was added earlier
@@ -22025,7 +22025,7 @@ Extension modules
2202522025
now.
2202622026

2202722027
today() and now() now round system timestamps to the closest
22028-
microsecond <http://www.python.org/sf/661086>. This repairs an
22028+
microsecond <https://bugs.python.org/issue661086>. This repairs an
2202922029
irritation most likely seen on Windows systems.
2203022030

2203122031
In dt.astimezone(tz), if tz.utcoffset(dt) returns a duration,
@@ -22080,7 +22080,7 @@ Extension modules
2208022080

2208122081
datetime.fromtimestamp(): Like datetime.now() above, this had less than
2208222082
useful behavior when the optional tinzo argument was specified. See
22083-
also SF bug report <http://www.python.org/sf/660872>.
22083+
also SF bug report <https://bugs.python.org/issue660872>.
2208422084

2208522085
date and datetime comparison: In order to prevent comparison from
2208622086
falling back to the default compare-object-addresses strategy, these
@@ -22139,10 +22139,10 @@ Library
2213922139
dependent path modules (e.g. ntpath.py) rather than os.py, so these
2214022140
variables are now available via os.path. They continue to be
2214122141
available from the os module.
22142-
(see <http://www.python.org/sf/680789>).
22142+
(see <https://bugs.python.org/issue680789>).
2214322143

2214422144
- array.array was added to the types repr.py knows about (see
22145-
<http://www.python.org/sf/680789>).
22145+
<https://bugs.python.org/issue680789>).
2214622146

2214722147
- The new pickletools.py contains lots of documentation about pickle
2214822148
internals, and supplies some helpers for working with pickles, such as
@@ -22527,7 +22527,7 @@ Core and builtins
2252722527
potential drawback is that list.sort() may require temp space of
2252822528
len(list)*2 bytes (``*4`` on a 64-bit machine). It's therefore possible
2252922529
for list.sort() to raise MemoryError now, even if a comparison function
22530-
does not. See <http://www.python.org/sf/587076> for full details.
22530+
does not. See <https://bugs.python.org/issue587076> for full details.
2253122531

2253222532
- All standard iterators now ensure that, once StopIteration has been
2253322533
raised, all future calls to next() on the same iterator will also

Modules/gc_weakref.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ soon as we execute Python code, threads other than the gc thread can run
4747
too, and they can do ordinary things with weakrefs that end up resurrecting
4848
CT while gc is running.
4949

50-
https://www.python.org/sf/1055820
50+
https://bugs.python.org/issue1055820
5151

5252
shows how innocent it can be, and also how nasty. Variants of the three
5353
focused test cases attached to that bug report are now part of Python's

0 commit comments

Comments
 (0)