aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/target.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-12-02 10:39:52 -0500
committerW. Trevor King <wking@drexel.edu>2008-12-02 10:39:52 -0500
commit742ecad12d831ed296d8ae00fe8e130b0ecd54d0 (patch)
treebd722b6f8cf56d5b5c6dad7bdfc309cbaad86caa /becommands/target.py
parent6a94d050bbd72b3812fd7cb05445a66484103214 (diff)
downloadbugseverywhere-742ecad12d831ed296d8ae00fe8e130b0ecd54d0.tar.gz
Bug moved to the settings_object system.
Diffstat (limited to 'becommands/target.py')
-rw-r--r--becommands/target.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/becommands/target.py b/becommands/target.py
index d14ff06..c83ffa7 100644
--- a/becommands/target.py
+++ b/becommands/target.py
@@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""Show or change a bug's target for fixing"""
-from libbe import cmdutil, bugdir
+from libbe import cmdutil, bugdir, settings_object
__desc__ = __doc__
def execute(args, test=False):
@@ -41,7 +41,7 @@ def execute(args, test=False):
bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
bug = bd.bug_from_shortname(args[0])
if len(args) == 1:
- if bug.target is None:
+ if bug.target is None or bug.target is settings_object.EMPTY:
print "No target assigned."
else:
print bug.target