gh-114123: Migrate docstring from _csv to csv (#114124) · python/cpython@72abb8c · GitHub
Skip to content

Commit 72abb8c

Browse files
smontanaroAA-Turnermerwok
authored
gh-114123: Migrate docstring from _csv to csv (#114124)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Éric <merwok@netwok.org>
1 parent 68a7b78 commit 72abb8c

4 files changed

Lines changed: 78 additions & 79 deletions

File tree

Lib/csv.py

Lines changed: 69 additions & 7 deletions

Lib/test/test_csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,8 +1416,7 @@ def test_ordered_dict_reader(self):
14161416

14171417
class MiscTestCase(unittest.TestCase):
14181418
def test__all__(self):
1419-
extra = {'__doc__', '__version__'}
1420-
support.check__all__(self, csv, ('csv', '_csv'), extra=extra)
1419+
support.check__all__(self, csv, ('csv', '_csv'))
14211420

14221421
def test_subclassable(self):
14231422
# issue 44089
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Move the :mod:`csv` module docstring to the :mod:`!csv` module
2+
instead of reexporting it from the internal :mod:`!_csv` module,
3+
and remove ``__doc__`` from ``csv.__all__``.
4+
5+
Move :attr:`!csv.__version__` to the :mod:`!csv` module
6+
instead of reexporting it from the internal :mod:`!_csv` module,
7+
and remove ``__version__`` from ``csv.__all__``.

Modules/_csv.c

Lines changed: 1 addition & 70 deletions

0 commit comments

Comments
 (0)