# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2016-05-12 20:41:57 # Node ID bf7fd815b083dc6005b99b94a31850a2050088d7 # Parent 5a3197cbe415d533d53329089cf350f218cf8e19 py3: make contrib/check-commit use absolute_import diff --git a/contrib/check-commit b/contrib/check-commit --- a/contrib/check-commit +++ b/contrib/check-commit @@ -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"(?!#)"