aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-14 00:32:38 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-14 00:32:38 -0500
commit91b284cde8c4443cf0997798f4f847ce95409cd3 (patch)
tree5d65fbc688721ca349e508c53ae1a2750c673df5 /libbe
parent41c369fafb6b775c50ba1d50efc57c024449b97c (diff)
downloadbugseverywhere-91b284cde8c4443cf0997798f4f847ce95409cd3.tar.gz
Changed __get/setattribute__ calls to get/setattr() calls.
See http://www.python.org/doc/2.5.2/lib/built-in-funcs.html#l2h-33 http://www.python.org/doc/2.5.2/lib/built-in-funcs.html#l2h-66
Diffstat (limited to 'libbe')
-rw-r--r--libbe/bugdir.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 427ed38..bcc163c 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -198,7 +198,7 @@ class InvalidValue(Exception):
def checked_property(name, valid):
def getter(self):
- value = self.__getattribute__("_"+name)
+ value = getattr(self, "_"+name)
if value not in valid:
raise InvalidValue(name, value)
return value
@@ -206,7 +206,7 @@ def checked_property(name, valid):
def setter(self, value):
if value not in valid:
raise InvalidValue(name, value)
- return self.__setattr__("_"+name, value)
+ return setattr(self, "_"+name, value)
return property(getter, setter)
severity_levels = ("wishlist", "minor", "serious", "critical", "fatal")
@@ -254,7 +254,7 @@ class Bug(object):
active = property(_get_active)
def add_attr(self, map, name):
- value = self.__getattribute__(name)
+ value = getattr(self, name)
if value is not None:
map[name] = value
@@ -336,7 +336,7 @@ def add_attrs(obj, map, names, map_names=None):
map_names[name] = name
for name in names:
- value = obj.__getattribute__(name)
+ value = getattr(obj, name)
if value is not None:
map[map_names[name]] = value