Skip to content

Commit e7fed14

Browse files
committed
Re-export existing module docstrings
1 parent c8201ba commit e7fed14

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

Lib/compression/bz2/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
"""Module re-exporting contents of the bz2 module.
2-
3-
Please refer to the bz2 documentation for this module's contents.
4-
"""
1+
import bz2
2+
__doc__ = bz2.__doc__
3+
del bz2
54

65
from bz2 import *

Lib/compression/gzip/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
"""Module re-exporting contents of the gzip module.
2-
3-
Please refer to the gzip documentation for this module's contents.
4-
"""
1+
import gzip
2+
__doc__ = gzip.__doc__
3+
del gzip
54

65
from gzip import *

Lib/compression/lzma/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
"""Module re-exporting contents of the lzma module.
2-
3-
Please refer to the lzma documentation for this module's contents.
4-
"""
1+
import lzma
2+
__doc__ = lzma.__doc__
3+
del lzma
54

65
from lzma import *

Lib/compression/zlib/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
"""Module re-exporting contents of the zlib module.
2-
3-
Please refer to the bz2 documentation for this module's contents.
4-
"""
1+
import zlib
2+
__doc__ = zlib.__doc__
3+
del zlib
54

65
from zlib import *

0 commit comments

Comments
 (0)