summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-06-28 16:15:28 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2011-06-28 16:15:28 +0200
commitf23816d7e520bf1f27eb2778d0129e9ad9d576e4 (patch)
tree54d3c8e42c9aae535be2edbf5ad9c29580ebfc91
parent75a3815d904ca29584fd89b25017538631053c3b (diff)
downloadportage-f23816d7e520bf1f27eb2778d0129e9ad9d576e4.tar.gz
portage-f23816d7e520bf1f27eb2778d0129e9ad9d576e4.tar.bz2
portage-f23816d7e520bf1f27eb2778d0129e9ad9d576e4.zip
read_corresponding_eapi_file(): Strip final \n from EAPI value.
-rw-r--r--pym/portage/util/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)