Skip to content

Commit a1f4423

Browse files
committed
line naming up with other recent work in grid_openid
1 parent c7c82f5 commit a1f4423

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mig/wsgi-bin/migwsgi.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
from mig.shared.safeinput import valid_backend_name, html_escape, InputException
4545
from mig.shared.scriptinput import fieldstorage_to_dict
4646

47+
4748
if PY2:
48-
def _ensure_wsgi_chunk(chunk):
49+
def _ensure_encoded_string(chunk):
4950
return chunk
5051
else:
51-
def _ensure_wsgi_chunk(chunk):
52+
def _ensure_encoded_string(chunk):
5253
return codecs.encode(chunk, 'utf8')
5354

5455

@@ -443,7 +444,7 @@ def _application(environ, start_response, _set_environ, _format_output=format_ou
443444
# (backend, i+1, chunk_parts))
444445
# end index may be after end of content - but no problem
445446
part = output[i*download_block_size:(i+1)*download_block_size]
446-
yield _ensure_wsgi_chunk(part)
447+
yield _ensure_encoded_string(part)
447448
if chunk_parts > 1:
448449
_logger.info("WSGI %s finished yielding all %d output parts" %
449450
(backend, chunk_parts))

0 commit comments

Comments
 (0)