diff --git a/contrib/synthrepo.py b/contrib/synthrepo.py --- a/contrib/synthrepo.py +++ b/contrib/synthrepo.py @@ -36,10 +36,30 @@ A few obvious properties that are not cu - 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 diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -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