aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/remove.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/remove.py')
-rw-r--r--becommands/remove.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/becommands/remove.py b/becommands/remove.py
index d441bfe..d6ba999 100644
--- a/becommands/remove.py
+++ b/becommands/remove.py
@@ -17,7 +17,7 @@
from libbe import cmdutil, bugdir
__desc__ = __doc__
-def execute(args, test=False):
+def execute(args, manipulate_encodings=True):
"""
>>> from libbe import mapfile
>>> import os
@@ -25,7 +25,7 @@ def execute(args, test=False):
>>> os.chdir(bd.root)
>>> print bd.bug_from_shortname("b").status
closed
- >>> execute (["b"], test=True)
+ >>> execute (["b"], manipulate_encodings=False)
Removed bug b
>>> bd._clear_bugs()
>>> try:
@@ -40,7 +40,8 @@ def execute(args, test=False):
bugid_args={0: lambda bug : bug.active==True})
if len(args) != 1:
raise cmdutil.UsageError, "Please specify a bug id."
- bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
+ bd = bugdir.BugDir(from_disk=True,
+ manipulate_encodings=manipulate_encodings)
bug = bd.bug_from_shortname(args[0])
bd.remove_bug(bug)
bd.save()