changeset 28351:42a7301fb4d5

casesmash: use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 06 Mar 2016 02:25:50 +0530
parents 8f9661d1637b
children a92ee4d8a574
files contrib/casesmash.py tests/test-check-py3-compat.t
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/casesmash.py	Sat Mar 05 13:56:59 2016 +0000
+++ b/contrib/casesmash.py	Sun Mar 06 02:25:50 2016 +0530
@@ -1,5 +1,9 @@
-import os, __builtin__
-from mercurial import util
+from __future__ import absolute_import
+import __builtin__
+import os
+from mercurial import (
+    util,
+)
 
 def lowerwrap(scope, funcname):
     f = getattr(scope, funcname)
--- a/tests/test-check-py3-compat.t	Sat Mar 05 13:56:59 2016 +0000
+++ b/tests/test-check-py3-compat.t	Sun Mar 06 02:25:50 2016 +0530
@@ -3,7 +3,6 @@
   $ cd "$TESTDIR"/..
 
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
-  contrib/casesmash.py not using absolute_import
   contrib/check-code.py not using absolute_import
   contrib/check-code.py requires print_function
   contrib/check-config.py not using absolute_import