aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-20 18:39:31 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-20 18:39:31 -0400
commit9ef6ad576c01444e35b91dfee8d05b39ec911d45 (patch)
tree5694f450808f09613fddae5354d686062efb7652 /libbe/bugdir.py
parenta6d5f2891dc353ebe5d9d8598790a6674c174eec (diff)
downloadbugseverywhere-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/bugdir.py')
-rw-r--r--libbe/bugdir.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 764e449..e37db81 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -141,10 +141,11 @@ class BugDir (list, settings_object.SavedSettingsObject):
def _guess_encoding(self):
return encoding.get_encoding()
def _check_encoding(value):
- if value != None and value != settings_object.EMPTY:
+ if value != None:
return encoding.known_encoding(value)
def _setup_encoding(self, new_encoding):
- if new_encoding != None and new_encoding != settings_object.EMPTY:
+ # change hook called before generator.
+ if new_encoding not in [None, settings_object.EMPTY]:
if self._manipulate_encodings == True:
encoding.set_IO_stream_encodings(new_encoding)
def _set_encoding(self, old_encoding, new_encoding):
@@ -222,7 +223,7 @@ settings easy. Don't set this attribute. Set .rcs instead, and
def _bug_map(): return {}
def _setup_severities(self, severities):
- if severities != None and severities != settings_object.EMPTY:
+ if severities not in [None, settings_object.EMPTY]:
bug.load_severities(severities)
def _set_severities(self, old_severities, new_severities):
self._setup_severities(new_severities)