From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 28 Jun 2011 14:15:28 +0000 (+0200) Subject: read_corresponding_eapi_file(): Strip final \n from EAPI value. X-Git-Tag: v2.2.0_alpha42~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f23816d7e520bf1f27eb2778d0129e9ad9d576e4;p=portage.git read_corresponding_eapi_file(): Strip final \n from EAPI value. --- diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index ece0806e2..31a808b0c 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -390,7 +390,7 @@ def read_corresponding_eapi_file(filename): f = open(eapi_file, "r") lines = f.readlines() if len(lines) == 1: - eapi = lines[0] + eapi = lines[0].rstrip("\n") else: writemsg(_("--- Invalid 'eapi' file (doesn't contain exactly one line): %s\n") % (eapi_file), noiselevel=-1)