Skip to content
Snippets Groups Projects
Commit e0a7cfa9 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: use print as a function in tests/test-revert.t

This makes the test work on Python 3.

Differential Revision: https://phab.mercurial-scm.org/D4687
parent 7cdd47d9
No related branches found
No related tags found
No related merge requests found
......@@ -471,6 +471,7 @@
test-revert-flags.t
test-revert-interactive.t
test-revert-unknown.t
test-revert.t
test-revisions.t
test-revlog-ancestry.py
test-revlog-group-emptyiter.t
......
......@@ -532,6 +532,7 @@
$ cat << EOF >> dircontent.py
> # generate a simple text view of the directory for easy comparison
> from __future__ import print_function
> import os
> files = os.listdir('.')
> files.sort()
......@@ -539,7 +540,7 @@
> if os.path.isdir(filename):
> continue
> content = open(filename).read()
> print '%-6s %s' % (content.strip(), filename)
> print('%-6s %s' % (content.strip(), filename))
> EOF
Generate appropriate repo state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment