src/registry.py: Update StringWithSpaceOnRight to accept the empty string as a valid value (instead of padding a space).

This commit is contained in:
James Vega 2006-05-01 16:50:02 +00:00
parent adc53b11df
commit 67697d8245

View File

@ -524,7 +524,7 @@ class StringSurroundedBySpaces(String):
class StringWithSpaceOnRight(String): class StringWithSpaceOnRight(String):
def setValue(self, v): def setValue(self, v):
if v.rstrip() == v: if v and v.rstrip() == v:
v += ' ' v += ' '
super(StringWithSpaceOnRight, self).setValue(v) super(StringWithSpaceOnRight, self).setValue(v)