diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-28 10:06:40 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-28 10:06:40 -0500 |
commit | e0c58cc0577fbb1b692e051eabd8597ba35c886a (patch) | |
tree | c2f9472656771e043148f0d7dc975f212aaef044 /libbe/storage/base.py | |
parent | 292f341109b31c16213146f9184d0b93a425f316 (diff) | |
download | bugseverywhere-e0c58cc0577fbb1b692e051eabd8597ba35c886a.tar.gz |
libbe.storage.vcs.base.VCS._init() now creates the '.be/version' file.
And
python test.py libbe.storage.vcs.base
passes again.
Diffstat (limited to 'libbe/storage/base.py')
-rw-r--r-- | libbe/storage/base.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libbe/storage/base.py b/libbe/storage/base.py index b43f765..9da60ad 100644 --- a/libbe/storage/base.py +++ b/libbe/storage/base.py @@ -272,10 +272,11 @@ class Storage (object): else: decode = False value = self._get(*args, **kwargs) - if decode == True and type(value) != types.UnicodeType: - return unicode(value, self.encoding) - if decode == False and type(value) != types.StringType: - return value.encode(self.encoding) + if value != None: + if decode == True and type(value) != types.UnicodeType: + return unicode(value, self.encoding) + elif decode == False and type(value) != types.StringType: + return value.encode(self.encoding) return value def _get(self, id, default=InvalidObject, revision=None): |