{
  "id": "python/flask-werkzeug-proxy-fix-deprecated",
  "signature": "DeprecationWarning: 'werkzeug.urls.url_quote' is deprecated and will be removed in Werkzeug 3.0. Use urllib.parse.quote instead.",
  "signature_zh": "DeprecationWarning: 'werkzeug.urls.url_quote' 已弃用，将在 Werkzeug 3.0 中移除。请改用 urllib.parse.quote。",
  "regex": "DeprecationWarning:\\ 'werkzeug\\.urls\\.url_quote'\\ is\\ deprecated\\ and\\ will\\ be\\ removed\\ in\\ Werkzeug\\ 3\\.0\\.\\ Use\\ urllib\\.parse\\.quote\\ instead\\.",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Application code imports deprecated werkzeug.urls helpers removed in Werkzeug 3.x.",
  "root_cause_type": "generic",
  "root_cause_zh": "应用代码导入了 Werkzeug 3.x 中已移除的 werkzeug.urls 辅助函数。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Hides the issue until the import raises ImportError.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Blocks other security fixes and modern Flask compat.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "from urllib.parse import quote, unquote\nquote('a b')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "from werkzeug.urls import url_parse  # still available where applicable",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-29",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}