Mercurial > hg-stable
changeset 28561:330584235c22
contrib: make perf.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 16 Mar 2016 04:12:16 +0530 |
parents | bfbd3f02b442 |
children | 2b585677220e |
files | contrib/perf.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 19 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Mon Mar 14 20:20:22 2016 +0100 +++ b/contrib/perf.py Wed Mar 16 04:12:16 2016 +0530 @@ -1,12 +1,26 @@ # perf.py - performance test routines '''helper extension to measure performance''' -from mercurial import cmdutil, scmutil, util, commands, obsolete -from mercurial import repoview, branchmap, merge, copies, error, revlog -from mercurial import mdiff -import time, os, sys +from __future__ import absolute_import +import functools +import os import random -import functools +import sys +import time +from mercurial import ( + branchmap, + cmdutil, + commands, + copies, + error, + mdiff, + merge, + obsolete, + repoview, + revlog, + scmutil, + util, +) formatteropts = commands.formatteropts revlogopts = commands.debugrevlogopts
--- a/tests/test-check-py3-compat.t Mon Mar 14 20:20:22 2016 +0100 +++ b/tests/test-check-py3-compat.t Wed Mar 16 04:12:16 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/perf.py not using absolute_import contrib/python-hook-examples.py not using absolute_import contrib/revsetbenchmarks.py not using absolute_import contrib/revsetbenchmarks.py requires print_function