From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java-config:master commit in: src/java_config_2/
Date: Fri, 8 Sep 2017 21:22:08 +0000 (UTC) [thread overview]
Message-ID: <1500473050.82a5a6343e7b6172af6aaa1b3ea0a61a43afd206.monsieurp@gentoo> (raw)
commit: 82a5a6343e7b6172af6aaa1b3ea0a61a43afd206
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 19 14:04:10 2017 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jul 19 14:04:10 2017 +0000
URL: https://gitweb.gentoo.org/proj/java-config.git/commit/?id=82a5a634
remove useless else clauses.
src/java_config_2/Package.py | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/java_config_2/Package.py b/src/java_config_2/Package.py
index 2ecacc3..83c8c89 100644
--- a/src/java_config_2/Package.py
+++ b/src/java_config_2/Package.py
@@ -59,8 +59,7 @@ class Package:
"""
if var in self._config:
return self._config[var]
- else:
- return None
+ return None
def deps(self):
"""
@@ -76,13 +75,12 @@ class Package:
def __get_deps(self, query):
"""
- Return package's (optional) dependencies;
- @param query: variable to read from package.env
+ Return a package's (optional) dependencies.
+ @param query: variable to read from package.env.
"""
depstr = self.query(query)
if depstr:
return [dep.split("@") for dep in depstr.split(":")]
- else:
- return []
+ return []
-# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap:
\ No newline at end of file
+# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap:
next reply other threads:[~2017-09-08 21:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 21:22 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-16 20:50 [gentoo-commits] proj/java-config:master commit in: src/java_config_2/ Patrice Clement
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-27 11:28 Ralph Sennhauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500473050.82a5a6343e7b6172af6aaa1b3ea0a61a43afd206.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox