From 603ef0a2301c1d4ca084b5a5a7be77ac83151a09 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 May 2012 12:49:41 -0700 Subject: _pms_eapi_re: require whitespace before comment See discussion on gentoo-pms mailing list here: http://archives.gentoo.org/gentoo-pms/msg_1f76a55d04b4f2a3721cddc611434aad.xml --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3-1-g7c22