contrib: make memory.py use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 13 Mar 2016 01:32:42 +0530
changeset 28510 ade330deb39a
parent 28509 9e3ecb6f4995
child 28511 ff5f923fca3c
contrib: make memory.py use absolute_import
contrib/memory.py
tests/test-check-py3-compat.t
--- 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