diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-06-23 15:42:34 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-06-23 15:42:34 +0200 |
commit | ea29d93eb7e6c5403838cd6a546fb083a950b8d4 (patch) | |
tree | 95bdde7199f6fedb56298914bc00a071b2d5c438 | |
parent | remove else condition (diff) | |
download | java-config-ea29d93eb7e6c5403838cd6a546fb083a950b8d4.tar.gz java-config-ea29d93eb7e6c5403838cd6a546fb083a950b8d4.tar.bz2 java-config-ea29d93eb7e6c5403838cd6a546fb083a950b8d4.zip |
remove another else condition
-rw-r--r-- | src/java_config_2/FileParser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java_config_2/FileParser.py b/src/java_config_2/FileParser.py index bf8a60e..1590034 100644 --- a/src/java_config_2/FileParser.py +++ b/src/java_config_2/FileParser.py @@ -36,10 +36,9 @@ class FileParser: while value.find('${') >= 0: item = value[value.find('${')+2:value.find('}')] + val = '' if item in self.config: val = self.config[item] - else: - val = '' value = value.replace('${%s}' % item, val) self.pair(name,value) |