Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-no-request-uri.t @ 33720:27fb986e54d0
tests: fix simple heredoc print statements to work on Py3
There are a handful left that require some more care.
Differential Revision: https://phab.mercurial-scm.org/D293
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 15 Jun 2017 13:32:32 -0400 |
parents | 75be14993fda |
children | a12916cfef9e |
line wrap: on
line diff
--- a/tests/test-hgweb-no-request-uri.t Mon Jul 24 10:37:39 2017 -0400 +++ b/tests/test-hgweb-no-request-uri.t Thu Jun 15 13:32:32 2017 -0400 @@ -31,11 +31,11 @@ > input = stringio() > > def startrsp(status, headers): - > print '---- STATUS' - > print status - > print '---- HEADERS' - > print [i for i in headers if i[0] != 'ETag'] - > print '---- DATA' + > print('---- STATUS') + > print(status) + > print('---- HEADERS') + > print([i for i in headers if i[0] != 'ETag']) + > print('---- DATA') > return output.write > > env = { @@ -58,8 +58,8 @@ > sys.stdout.write(output.getvalue()) > sys.stdout.write(''.join(content)) > getattr(content, 'close', lambda : None)() - > print '---- ERRORS' - > print errors.getvalue() + > print('---- ERRORS') + > print(errors.getvalue()) > > output = stringio() > env['PATH_INFO'] = '/'