Skip to content

Commit 10d0a55

Browse files
l0lawrenceCopilot
andcommitted
fix(http-client-python): make vendored streaming_base banner flavor-aware
The vendored _utils/streaming_base.py header hardcoded "vendored from azure-core (azure.core.streaming)". For the unbranded flavor this leaked the word "azure" into generated output, failing the unbranded test_sensitive_word check. Reword the banner to reference {{ code_model.core_library }}.streaming (azure.core.streaming for azure, corehttp.streaming for unbranded), consistent with the flavor-aware import just below it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 51359cbf-bc53-429e-b947-8284a91d7d46
1 parent 8bb9994 commit 10d0a55

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/http-client-python/generator/pygen/codegen/templates/streaming_base.py.jinja2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
{% endif %}
55
# pylint: disable=line-too-long,useless-suppression,unnecessary-ellipsis
66
# --------------------------------------------------------------------------
7-
# This file is vendored from azure-core (azure.core.streaming). It provides the
8-
# Stream / AsyncStream helpers (plus the JSONL / SSE decoders and event types)
9-
# used by generated structured-streaming operations, so the generated package
10-
# does not take a hard dependency on a core runtime that ships the streaming
11-
# helpers. Do not edit by hand.
7+
# This file is vendored from the core streaming runtime
8+
# ({{ code_model.core_library }}.streaming). It provides the Stream / AsyncStream
9+
# helpers (plus the JSONL / SSE decoders and event types) used by generated
10+
# structured-streaming operations, so the generated package does not take a hard
11+
# dependency on a core runtime that ships the streaming helpers. Do not edit by hand.
1212
# --------------------------------------------------------------------------
1313
import codecs
1414
import json

0 commit comments

Comments
 (0)