Skip to content

Commit 4e63312

Browse files
committed
Remove dead streamed parameter from utils
1 parent 39a603e commit 4e63312

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pulp_python/app/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,25 +540,25 @@ def find_artifact():
540540
}
541541

542542

543-
def write_simple_index(project_names, streamed=False):
543+
def write_simple_index(project_names):
544544
"""Writes the simple index."""
545545
simple = Template(simple_index_template)
546546
context = {
547547
"SIMPLE_API_VERSION": SIMPLE_API_VERSION,
548548
"projects": ((x, canonicalize_name(x)) for x in project_names),
549549
}
550-
return simple.stream(**context) if streamed else simple.render(**context)
550+
return simple.render(**context)
551551

552552

553-
def write_simple_detail(project_name, project_packages, streamed=False):
553+
def write_simple_detail(project_name, project_packages):
554554
"""Writes the simple detail page of a package."""
555555
detail = Template(simple_detail_template, autoescape=True)
556556
context = {
557557
"SIMPLE_API_VERSION": SIMPLE_API_VERSION,
558558
"project_name": project_name,
559559
"project_packages": project_packages,
560560
}
561-
return detail.stream(**context) if streamed else detail.render(**context)
561+
return detail.render(**context)
562562

563563

564564
def write_simple_index_json(project_names):

0 commit comments

Comments
 (0)