diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-05-13 12:49:41 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-05-13 12:49:41 -0700 |
commit | 603ef0a2301c1d4ca084b5a5a7be77ac83151a09 (patch) | |
tree | 4c0d6a2b0cc0820659edfe662a2067f7cf3fc315 | |
parent | bb1ac9ea20233ba764e989d36c8e8ea1cfc34cb3 (diff) | |
download | portage-603ef0a2301c1d4ca084b5a5a7be77ac83151a09.tar.gz portage-603ef0a2301c1d4ca084b5a5a7be77ac83151a09.tar.bz2 portage-603ef0a2301c1d4ca084b5a5a7be77ac83151a09.zip |
_pms_eapi_re: require whitespace before comment
See discussion on gentoo-pms mailing list here:
http://archives.gentoo.org/gentoo-pms/msg_1f76a55d04b4f2a3721cddc611434aad.xml
-rw-r--r-- | pym/portage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |