aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Lehmann <mail@robertlehmann.de>2010-11-26 09:46:52 +0100
committerRobert Lehmann <mail@robertlehmann.de>2010-11-26 09:46:52 +0100
commit3803b501a79071187324d75efdf1ea9e3437347f (patch)
treed4857026a6575873acd56a2c082905d98b846717
parent7c4eed14652c014f20d78fae6824cfcc84198534 (diff)
downloadbugseverywhere-3803b501a79071187324d75efdf1ea9e3437347f.tar.gz
Use a clean getattr() instead of eval().
-rw-r--r--libbe/command/list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/list.py b/libbe/command/list.py
index 06249a0..f348d5c 100644
--- a/libbe/command/list.py
+++ b/libbe/command/list.py
@@ -156,7 +156,7 @@ class List (libbe.command.Command):
raise libbe.command.UserError(
'Invalid sort on "%s".\nValid sorts:\n %s'
% (cmp, '\n '.join(AVAILABLE_CMPS)))
- cmp_list.append(eval('libbe.bug.cmp_%s' % cmp))
+ cmp_list.append(getattr(libbe.bug, 'cmp_%s' % cmp))
status = parse_status(params['status'])
severity = parse_severity(params['severity'],
important=params['important'])