From 67697d8245512ed9e6aee79618838ac1c90e1563 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 1 May 2006 16:50:02 +0000 Subject: [PATCH] src/registry.py: Update StringWithSpaceOnRight to accept the empty string as a valid value (instead of padding a space). --- src/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry.py b/src/registry.py index 2974b292f..63dab3e9a 100644 --- a/src/registry.py +++ b/src/registry.py @@ -524,7 +524,7 @@ class StringSurroundedBySpaces(String): class StringWithSpaceOnRight(String): def setValue(self, v): - if v.rstrip() == v: + if v and v.rstrip() == v: v += ' ' super(StringWithSpaceOnRight, self).setValue(v)