Skip to content

Commit 5800535

Browse files
committed
fix bad reference (SPECIALNAMES doesn't exist)
1 parent 4ed0e72 commit 5800535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/pydoc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,26 +1865,26 @@ def collect_dunders(symbols):
18651865
'__format__', '__hash__', '__bool__',
18661866
]
18671867
for bd in basic_dunders:
1868-
dunders[bd] = ('customization', 'SPECIALNAMES')
1868+
dunders[bd] = ('customization', 'SPECIALMETHODS')
18691869

18701870
attribute_dunders = [
18711871
'__getattr__', '__getattribute__', '__setattr__', '__delattr__',
18721872
'__dir__', '__get__', '__set__', '__delete__', '__objclass__',
18731873
]
18741874
for ad in attribute_dunders:
1875-
dunders[ad] = ('attribute-access', 'SPECIALNAMES')
1875+
dunders[ad] = ('attribute-access', 'SPECIALMETHODS')
18761876

18771877
class_dunders = [
18781878
'__init_subclass__', '__set_names__', '__mro_entries__',
18791879
]
18801880
for cd in class_dunders:
1881-
dunders[cd] = ('class-customization', 'SPECIALNAMES')
1881+
dunders[cd] = ('class-customization', 'SPECIALMETHODS')
18821882

18831883
instance_dunders = [
18841884
'__instancecheck__', '__subclasscheck__'
18851885
]
18861886
for d in instance_dunders:
1887-
dunders[d] = ('customize-instance-subclass-checks', 'SPECIALNAMES')
1887+
dunders[d] = ('customize-instance-subclass-checks', 'SPECIALMETHODS')
18881888

18891889
sequence_dunders = [
18901890
'__len__', '__length_hint__', '__getitem__', '__setitem__',

0 commit comments

Comments
 (0)