# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-03-05 20:55:50 # Node ID 42a7301fb4d5c70e9f389cbbc2aea5354cd69f8f # Parent 8f9661d1637b7207bd3b1e58b60cf13187690b9d casesmash: use absolute_import diff --git a/contrib/casesmash.py b/contrib/casesmash.py --- a/contrib/casesmash.py +++ b/contrib/casesmash.py @@ -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) 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 @@ -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