--- a/contrib/synthrepo.py Wed Mar 16 04:13:28 2016 +0530
+++ b/contrib/synthrepo.py Wed Mar 16 04:23:58 2016 +0530
@@ -36,10 +36,30 @@
- Symlinks and binary files are ignored
'''
-import bisect, collections, itertools, json, os, random, time, sys
-from mercurial import cmdutil, context, patch, scmutil, util, hg, error
+from __future__ import absolute_import
+import bisect
+import collections
+import itertools
+import json
+import os
+import random
+import sys
+import time
+from mercurial import (
+ cmdutil,
+ context,
+ error,
+ hg,
+ patch,
+ scmutil,
+ util,
+)
from mercurial.i18n import _
-from mercurial.node import nullrev, nullid, short
+from mercurial.node import (
+ nullid,
+ nullrev,
+ short,
+)
# Note for extension authors: ONLY specify testedwith = 'internal' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
--- a/tests/test-check-py3-compat.t Wed Mar 16 04:13:28 2016 +0530
+++ b/tests/test-check-py3-compat.t Wed Mar 16 04:23:58 2016 +0530
@@ -7,7 +7,6 @@
contrib/import-checker.py requires print_function
contrib/revsetbenchmarks.py not using absolute_import
contrib/revsetbenchmarks.py requires print_function
- contrib/synthrepo.py not using absolute_import
doc/check-seclevel.py not using absolute_import
doc/gendoc.py not using absolute_import
doc/hgmanpage.py not using absolute_import