Mercurial > hg
diff contrib/check-commit @ 29163:bf7fd815b083
py3: make contrib/check-commit use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 13 May 2016 02:11:57 +0530 |
parents | ac4684c21f73 |
children | 91f35b1a34cf |
line wrap: on
line diff
--- 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"(?!#)"