From: Zac Medico Date: Sun, 13 May 2012 19:49:41 +0000 (-0700) Subject: _pms_eapi_re: require whitespace before comment X-Git-Tag: v2.2.0_alpha105~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=603ef0a2301c1d4ca084b5a5a7be77ac83151a09;p=portage.git _pms_eapi_re: require whitespace before comment See discussion on gentoo-pms mailing list here: http://archives.gentoo.org/gentoo-pms/msg_1f76a55d04b4f2a3721cddc611434aad.xml --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 745e06af7..bf3fdadaf 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -446,7 +446,7 @@ def eapi_is_supported(eapi): return eapi <= portage.const.EAPI # This pattern is specified by PMS section 7.3.1. -_pms_eapi_re = re.compile(r"^[ \t]*EAPI=(['\"]?)([A-Za-z0-9+_.-]*)\1[ \t]*(#.*)?$") +_pms_eapi_re = re.compile(r"^[ \t]*EAPI=(['\"]?)([A-Za-z0-9+_.-]*)\1[ \t]*([ \t]#.*)?$") _comment_or_blank_line = re.compile(r"^\s*(#.*)?$") def _parse_eapi_ebuild_head(f):