--- 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