aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-06-23 15:42:34 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-06-23 15:42:34 +0200
commitea29d93eb7e6c5403838cd6a546fb083a950b8d4 (patch)
tree95bdde7199f6fedb56298914bc00a071b2d5c438
parentremove else condition (diff)
downloadjava-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.py3
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)