py3: make contrib/check-commit use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 13 May 2016 02:11:57 +0530
changeset 29163 bf7fd815b083
parent 29162 5a3197cbe415
child 29164 91f35b1a34cf
py3: make contrib/check-commit use absolute_import
contrib/check-commit
--- a/contrib/check-commit	Thu May 12 01:03:19 2016 +0100
+++ b/contrib/check-commit	Fri May 13 02:11:57 2016 +0530
@@ -15,7 +15,11 @@
 #
 # See also: https://mercurial-scm.org/wiki/ContributingChanges
 
-import re, sys, os
+from __future__ import absolute_import
+
+import os
+import re
+import sys
 
 commitheader = r"^(?:# [^\n]*\n)*"
 afterheader = commitheader + r"(?!#)"