Mercurial > hg
changeset 28563:62250a48dc7f
contrib: synthrepo use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 16 Mar 2016 04:23:58 +0530 |
parents | 2b585677220e |
children | 6d7da0901a28 |
files | contrib/synthrepo.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 23 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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