Mercurial > hg-stable
changeset 28510:ade330deb39a
contrib: make memory.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 13 Mar 2016 01:32:42 +0530 |
parents | 9e3ecb6f4995 |
children | ff5f923fca3c |
files | contrib/memory.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/memory.py Sun Mar 13 01:08:39 2016 +0530 +++ b/contrib/memory.py Sun Mar 13 01:32:42 2016 +0530 @@ -11,6 +11,7 @@ prints it to ``stderr`` on exit. ''' +from __future__ import absolute_import import atexit def memusage(ui):
--- a/tests/test-check-py3-compat.t Sun Mar 13 01:08:39 2016 +0530 +++ b/tests/test-check-py3-compat.t Sun Mar 13 01:32:42 2016 +0530 @@ -5,7 +5,6 @@ $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py contrib/import-checker.py not using absolute_import contrib/import-checker.py requires print_function - contrib/memory.py not using absolute_import contrib/perf.py not using absolute_import contrib/python-hook-examples.py not using absolute_import contrib/revsetbenchmarks.py not using absolute_import