diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-20 18:39:31 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-20 18:39:31 -0400 |
commit | 9ef6ad576c01444e35b91dfee8d05b39ec911d45 (patch) | |
tree | 5694f450808f09613fddae5354d686062efb7652 /libbe/bug.py | |
parent | a6d5f2891dc353ebe5d9d8598790a6674c174eec (diff) | |
download | bugseverywhere-9ef6ad576c01444e35b91dfee8d05b39ec911d45.tar.gz |
Cleaned up some outdated libbe.settings_object.EMPTY cruft.
From back before commit
wking@drexel.edu-20090619184215-nfx205yaj02sqrqx
cleaned up the versioned_property implementation.
Also a few style fixes and typos.
Diffstat (limited to 'libbe/bug.py')
-rw-r--r-- | libbe/bug.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index f5f479c..8be6010 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -177,7 +177,7 @@ class Bug(settings_object.SavedSettingsObject): def time_string(): return {} def _get_time(self): - if self.time_string in [None, settings_object.EMPTY]: + if self.time_string == None: return None return utility.str_to_time(self.time_string) def _set_time(self, value): @@ -254,10 +254,9 @@ class Bug(settings_object.SavedSettingsObject): def _setting_attr_string(self, setting): value = getattr(self, setting) - if value in [None, settings_object.EMPTY]: + if value == None: return "" - else: - return str(value) + return str(value) def xml(self, show_comments=False): if self.bugdir == None: |