contrib: synthrepo use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 16 Mar 2016 04:23:58 +0530
changeset 28563 62250a48dc7f
parent 28562 2b585677220e
child 28564 6d7da0901a28
contrib: synthrepo use absolute_import
contrib/synthrepo.py
tests/test-check-py3-compat.t
--- 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