diff options
Diffstat (limited to 'libbe/command/close.py')
-rw-r--r-- | libbe/command/close.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libbe/command/close.py b/libbe/command/close.py index 026c605..0532ed2 100644 --- a/libbe/command/close.py +++ b/libbe/command/close.py @@ -1,5 +1,4 @@ # Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc. -# Gianluca Montecchi <gian@grys.it> # Marien Zwart <marienz@gentoo.org> # Thomas Gerigk <tgerigk@gmx.de> # W. Trevor King <wking@drexel.edu> @@ -21,8 +20,7 @@ from libbe import cmdutil, bugdir __desc__ = __doc__ -def execute(args, manipulate_encodings=True, restrict_file_access=False, - dir="."): +def execute(args, manipulate_encodings=True): """ >>> from libbe import bugdir >>> import os @@ -45,9 +43,8 @@ def execute(args, manipulate_encodings=True, restrict_file_access=False, if len(args) > 1: raise cmdutil.UsageError("Too many arguments.") bd = bugdir.BugDir(from_disk=True, - manipulate_encodings=manipulate_encodings, - root=dir) - bug = cmdutil.bug_from_id(bd, args[0]) + manipulate_encodings=manipulate_encodings) + bug = cmdutil.bug_from_shortname(bd, args[0]) bug.status = "closed" bd.save() |