diff options
author | 2017-07-19 16:04:10 +0200 | |
---|---|---|
committer | 2017-07-19 16:04:10 +0200 | |
commit | 82a5a6343e7b6172af6aaa1b3ea0a61a43afd206 (patch) | |
tree | 418ab1867099698fa1b17232d685b373a73d0a5d | |
parent | drop header (diff) | |
download | java-config-82a5a6343e7b6172af6aaa1b3ea0a61a43afd206.tar.gz java-config-82a5a6343e7b6172af6aaa1b3ea0a61a43afd206.tar.bz2 java-config-82a5a6343e7b6172af6aaa1b3ea0a61a43afd206.zip |
remove useless else clauses.
-rw-r--r-- | src/java_config_2/Package.py | 12 |
1 files 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: |