diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-06-28 16:15:28 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-06-28 16:15:28 +0200 |
commit | f23816d7e520bf1f27eb2778d0129e9ad9d576e4 (patch) | |
tree | 54d3c8e42c9aae535be2edbf5ad9c29580ebfc91 | |
parent | 75a3815d904ca29584fd89b25017538631053c3b (diff) | |
download | portage-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__.py | 2 |
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) |