The following issues were found

Lib/test/encoded_modules/__init__.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # -*- encoding: utf-8 -*-

# This is a package that contains a number of modules that are used to
# test import from the source files that have different encodings.
# This file (the __init__ module of the package), is encoded in utf-8
# and contains a list of strings from various unicode planes that are
# encoded differently to compare them to the same strings encoded
# differently in submodules.  The following list, test_strings,
# contains a list of tuples. The first element of each tuple is the

            

Reported by Pylint.

Lib/test/test_import/__main__.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import unittest

unittest.main('test.test_import')

            

Reported by Pylint.

Lib/lib2to3/tests/data/fixers/myfixes/fix_parrot.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              from lib2to3.fixer_base import BaseFix
from lib2to3.fixer_util import Name

class FixParrot(BaseFix):
    """
    Change functions named 'parrot' to 'cheese'.
    """

    PATTERN = """funcdef < 'def' name='parrot' any* >"""

            

Reported by Pylint.

Lib/test/test_lib2to3.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import unittest
from test.support.import_helper import import_fresh_module
from test.support.warnings_helper import check_warnings

with check_warnings(("", PendingDeprecationWarning)):
    load_tests = import_fresh_module('lib2to3.tests', fresh=['lib2to3']).load_tests

if __name__ == '__main__':
    unittest.main()

            

Reported by Pylint.

Lib/secrets.py
1 issues
Access to a protected member _randbelow of a client class
Error

Line: 30 Column: 12

                  """Return a random int in the range [0, n)."""
    if exclusive_upper_bound <= 0:
        raise ValueError("Upper bound must be positive.")
    return _sysrand._randbelow(exclusive_upper_bound)

DEFAULT_ENTROPY = 32  # number of bytes to return by default

def token_bytes(nbytes=None):
    """Return a random byte string containing *nbytes* bytes.

            

Reported by Pylint.

Lib/test/test_asyncio/echo2.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import os

if __name__ == '__main__':
    buf = os.read(0, 1024)
    os.write(1, b'OUT:'+buf)
    os.write(2, b'ERR:'+buf)

            

Reported by Pylint.

Lib/test/autotest.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # This should be equivalent to running regrtest.py from the cmdline.
# It can be especially handy if you're in an interactive shell, e.g.,
# from test import autotest.
from test.libregrtest import main
main()

            

Reported by Pylint.

Lib/test/test_asyncio/echo.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import os

if __name__ == '__main__':
    while True:
        buf = os.read(0, 1024)
        if not buf:
            break
        os.write(1, buf)

            

Reported by Pylint.

Lib/test/test_ctypes.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import unittest
from test.support.import_helper import import_module


ctypes_test = import_module('ctypes.test')

load_tests = ctypes_test.load_tests

if __name__ == "__main__":

            

Reported by Pylint.

Lib/lib2to3/tests/data/false_encoding.py
1 issues
Missing parentheses in call to 'print'. Did you mean print('#coding=0')? (<unknown>, line 2)
Error

Line: 2 Column: 8

              #!/usr/bin/env python
print '#coding=0'

            

Reported by Pylint.