The following issues were found

Lib/email/iterators.py
1 issues
Argument name "fp" doesn't conform to snake_case naming style
Error

Line: 59 Column: 1

              


def _structure(msg, fp=None, level=0, include_default=False):
    """A handy debugging aid"""
    if fp is None:
        fp = sys.stdout
    tab = ' ' * (level * 4)
    print(tab + msg.get_content_type(), end='', file=fp)

            

Reported by Pylint.

Lib/asyncio/constants.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import enum

# After the connection is lost, log warnings after this many write()s.
LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5

# Seconds to wait before retrying accept().
ACCEPT_RETRY_DELAY = 1

# Number of stack entries to capture in debug mode.

            

Reported by Pylint.

Lib/email/mime/multipart.py
1 issues
Variable name "p" doesn't conform to snake_case naming style
Error

Line: 45 Column: 17

                      self._payload = []

        if _subparts:
            for p in _subparts:
                self.attach(p)
        if boundary:
            self.set_boundary(boundary)

            

Reported by Pylint.

Lib/contextvars.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              from _contextvars import Context, ContextVar, Token, copy_context


__all__ = ('Context', 'ContextVar', 'Token', 'copy_context')

            

Reported by Pylint.

Include/cpython/pydebug.h
1 issues
getenv - Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once
Security

Line: 32 Column: 57 CWE codes: 807 20
Suggestion: Check environment variables carefully before using them

              /* this is a wrapper around getenv() that pays attention to
   Py_IgnoreEnvironmentFlag.  It should be used for getting variables like
   PYTHONPATH and PYTHONHOME from the environment */
#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))

#ifdef __cplusplus
}
#endif
#endif /* !Py_PYDEBUG_H */

            

Reported by FlawFinder.

Lib/idlelib/mainmenu.py
1 issues
TODO: Make this more robust
Error

Line: 20 Column: 9

              #   which cannot be done until after Tk() is first called.
#   Do not alter the 'file', 'options', or 'help' cascades here
#   without altering overrideRootMenu() as well.
#       TODO: Make this more robust

menudefs = [
 # underscore prefixes character to underscore
 ('file', [
   ('_New File', '<<open-new-window>>'),

            

Reported by Pylint.

Include/cpython/unicodeobject.h
1 issues
memcpy - Does not check for buffer overflows when copying to destination
Security

Line: 55 Column: 5 CWE codes: 120
Suggestion: Make sure destination can always hold the source data

              
Py_DEPRECATED(3.3) static inline void
Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) {
    memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE));
}

Py_DEPRECATED(3.3) static inline void
Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) {
    Py_ssize_t i;

            

Reported by FlawFinder.

Include/internal/pycore_gil.h
1 issues
system - This causes a new program to execute and is difficult to use safely
Security

Line: 15 Column: 58 CWE codes: 78
Suggestion: try using a library call that implements the same functionality if available

              #include "pycore_condvar.h"   /* PyCOND_T */

#ifndef Py_HAVE_CONDVAR
#  error You need either a POSIX-compatible or a Windows system!
#endif

/* Enable if you want to force the switching of threads at least
   every `interval`. */
#undef FORCE_SWITCHING

            

Reported by FlawFinder.

Lib/distutils/debug.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import os

# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG = os.environ.get('DISTUTILS_DEBUG')

            

Reported by Pylint.

Lib/lib2to3/fixes/fix_long.py
1 issues
Missing class docstring
Error

Line: 12 Column: 1

              from lib2to3.fixer_util import is_probably_builtin


class FixLong(fixer_base.BaseFix):
    BM_compatible = True
    PATTERN = "'long'"

    def transform(self, node, results):
        if is_probably_builtin(node):

            

Reported by Pylint.