PyPI / pymysql / 1.2.4

pymysql 1.2.4

Source
https://github.com/PyMySQL/PyMySQL
Artifact scanned
pymysql-1.2.4-py3-none-any.whl (wheel · 45.8 KB · SHA-256 e169bed90616…)
Compared with
pymysql-1.2.3-py3-none-any.whl (0 signals introduced since)
Files
19 scanned, 4 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.5 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-11-09 09:57

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review frame-introspection pymysql/protocol.py:29:17

    `sys._getframe` — call-stack frame introspection (ast pass, confidence 0.70)

            for i in range(1, 7):
                f = sys._getframe(i)
                print("call[%d]: %s (line %d)" % (i, f.f_code.co_name, f.f_lineno))
            print("-" * 66)
    likely benign LLM, confidence 0.95 A debug routine in the PyMySQL protocol module that prints the call stack via sys._getframe.
    Reasoning

    The snippet is a debugging helper that walks up the call stack with sys._getframe and prints function names and line numbers. It has no network, process, or decoding behavior, and frame introspection of this kind is a common debugging technique. The surrounding dashes-print pattern suggests a debug dump function in a database driver, which is legitimate.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o pymysql-1.2.4-py3-none-any.whl https://files.pythonhosted.org/packages/a3/60/acffa1e7261fdc68fadf6f196b66058e03dcb3df239f2c0acbfd11165845/pymysql-1.2.4-py3-none-any.whl
printf '%s  %s\n' e169bed906168fffd0088925f45b3df024c2775c6fd128da0df773d47c458840 pymysql-1.2.4-py3-none-any.whl | shasum -a 256 -c -
unzip -q pymysql-1.2.4-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg