diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 09:46:52 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2010-11-26 09:46:52 +0100 |
commit | 3803b501a79071187324d75efdf1ea9e3437347f (patch) | |
tree | d4857026a6575873acd56a2c082905d98b846717 /libbe/command/list.py | |
parent | 7c4eed14652c014f20d78fae6824cfcc84198534 (diff) | |
download | bugseverywhere-3803b501a79071187324d75efdf1ea9e3437347f.tar.gz |
Use a clean getattr() instead of eval().
Diffstat (limited to 'libbe/command/list.py')
-rw-r--r-- | libbe/command/list.py | 2 |
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']) |