Mercurial > hg
diff tests/test-status.t @ 29485:6a98f9408a50
py3: make files use absolute_import and print_function
This patch includes addition of absolute_import and print_function to the
files where they are missing. The modern importing conventions are also followed.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 03 Jul 2016 22:28:24 +0530 |
parents | 2d3837a4bded |
children | 568d80b24b3a |
line wrap: on
line diff
--- a/tests/test-status.t Fri Jul 01 19:17:45 2016 -0700 +++ b/tests/test-status.t Sun Jul 03 22:28:24 2016 +0530 @@ -203,8 +203,9 @@ ] $ hg status -A -Tpickle > pickle + >>> from __future__ import print_function >>> import pickle - >>> print sorted((x['status'], x['path']) for x in pickle.load(open("pickle"))) + >>> print(sorted((x['status'], x['path']) for x in pickle.load(open("pickle")))) [('!', 'deleted'), ('?', 'pickle'), ('?', 'unknown'), ('A', 'added'), ('A', 'copied'), ('C', '.hgignore'), ('C', 'modified'), ('I', 'ignored'), ('R', 'removed')] $ rm pickle