@@ -804,18 +804,14 @@ def render_string_iter(
804
804
key = hash (template_string )
805
805
806
806
if cache and key in _CACHE :
807
- return _yield_as_sized_chunks (
808
- _CACHE [key ].render_iter (context or {}, chunk_size ), chunk_size
809
- )
807
+ return _CACHE [key ].render_iter (context or {}, chunk_size = chunk_size )
810
808
811
809
template = Template (template_string )
812
810
813
811
if cache :
814
812
_CACHE [key ] = template
815
813
816
- return _yield_as_sized_chunks (
817
- template .render_iter (context or {}), chunk_size = chunk_size
818
- )
814
+ return template .render_iter (context or {}, chunk_size = chunk_size )
819
815
820
816
821
817
def render_string (
@@ -882,18 +878,14 @@ def render_template_iter(
882
878
key = hash (template_path )
883
879
884
880
if cache and key in _CACHE :
885
- return _yield_as_sized_chunks (
886
- _CACHE [key ].render_iter (context or {}, chunk_size ), chunk_size
887
- )
881
+ return _CACHE [key ].render_iter (context or {}, chunk_size = chunk_size )
888
882
889
883
template = FileTemplate (template_path )
890
884
891
885
if cache :
892
886
_CACHE [key ] = template
893
887
894
- return _yield_as_sized_chunks (
895
- template .render_iter (context or {}, chunk_size = chunk_size ), chunk_size
896
- )
888
+ return template .render_iter (context or {}, chunk_size = chunk_size )
897
889
898
890
899
891
def render_template (
0 commit comments