aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-11 10:09:27 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-11 10:09:27 -0400
commita65b273fa14df2a085342bac14abb8a2167ff98a (patch)
tree8ca3797e21e166c21ff82d4b84f4d147ce348ab4 /becommands/set.py
parent5208a2808a2a87cbfa9d8589d5ac254aa0dea64f (diff)
downloadbugseverywhere-a65b273fa14df2a085342bac14abb8a2167ff98a.tar.gz
Went through "closed" bugs looking for miss-categorized bugs.
Found a few that were actually "fixed" and one that I reopened. Perhaps we should add a "merged" status to the default, so that the merged bugs don't clutter up the closed bugs category...
Diffstat (limited to 'becommands/set.py')
-rw-r--r--becommands/set.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/becommands/set.py b/becommands/set.py
index b050b35..fa431e9 100644
--- a/becommands/set.py
+++ b/becommands/set.py
@@ -60,7 +60,9 @@ def execute(args, test=False):
elif len(args) == 1:
print _value_string(bd, args[0])
else:
- if args[1] != "none":
+ if args[1] == "none":
+ del bd.settings[args[0]]
+ else:
if args[0] not in bd.settings_properties:
msg = "Invalid setting %s\n" % args[0]
msg += 'Allowed settings:\n '
@@ -68,8 +70,6 @@ def execute(args, test=False):
raise cmdutil.UserError(msg)
old_setting = bd.settings.get(args[0])
setattr(bd, args[0], args[1])
- else:
- del bd.settings[args[0]]
bd.save()
def get_parser():