# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1463085717 -19800 # Node ID bf7fd815b083dc6005b99b94a31850a2050088d7 # Parent 5a3197cbe415d533d53329089cf350f218cf8e19 py3: make contrib/check-commit use absolute_import diff -r 5a3197cbe415 -r bf7fd815b083 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"(?!#)"