diff contrib/python-hook-examples.py @ 28562:2b585677220e

contrib: python-hook-examples use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 16 Mar 2016 04:13:28 +0530
parents a8d13ee0ce68
children 1a184b727aff
line wrap: on
line diff
--- a/contrib/python-hook-examples.py	Wed Mar 16 04:12:16 2016 +0530
+++ b/contrib/python-hook-examples.py	Wed Mar 16 04:13:28 2016 +0530
@@ -1,7 +1,11 @@
 '''
 Examples of useful python hooks for Mercurial.
 '''
-from mercurial import patch, util
+from __future__ import absolute_import
+from mercurial import (
+    patch,
+    util,
+)
 
 def diffstat(ui, repo, **kwargs):
     '''Example usage: