aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/open.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/open.py')
-rw-r--r--libbe/command/open.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/libbe/command/open.py b/libbe/command/open.py
index a6fe48d..0c6bf05 100644
--- a/libbe/command/open.py
+++ b/libbe/command/open.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):
"""
>>> import os
>>> bd = bugdir.SimpleBugDir()
@@ -44,9 +42,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 = "open"
def get_parser():