diff options
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/bug.py | 2 | ||||
-rw-r--r-- | libbe/bugdir.py | 2 | ||||
-rw-r--r-- | libbe/comment.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index 01a953e..c9b2acd 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -748,7 +748,7 @@ class Bug (settings_object.SavedSettingsObject): def load_settings(self, settings_mapfile=None): if settings_mapfile == None: settings_mapfile = self.storage.get( - self.id.storage('values'), '\n') + self.id.storage('values'), '{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: diff --git a/libbe/bugdir.py b/libbe/bugdir.py index d485f5d..34c63c0 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -183,7 +183,7 @@ class BugDir (list, settings_object.SavedSettingsObject): def load_settings(self, settings_mapfile=None): if settings_mapfile == None: settings_mapfile = \ - self.storage.get(self.id.storage('settings'), default='\n') + self.storage.get(self.id.storage('settings'), default='{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: diff --git a/libbe/comment.py b/libbe/comment.py index ed38d0b..c1813b4 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -609,7 +609,7 @@ class Comment (Tree, settings_object.SavedSettingsObject): return if settings_mapfile == None: settings_mapfile = self.storage.get( - self.id.storage('values'), '\n') + self.id.storage('values'), '{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: |