From 70910ac62711282502e67d31b8600bd5beb43cc9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 5 Sep 2010 21:20:46 -0400 Subject: Default to "unknown" version info if libbe._version is missing. --- libbe/command/show.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbe/command') diff --git a/libbe/command/show.py b/libbe/command/show.py index c6ad37d..27be07c 100644 --- a/libbe/command/show.py +++ b/libbe/command/show.py @@ -26,7 +26,6 @@ import libbe.command import libbe.command.util import libbe.util.id import libbe.version -import libbe._version class Show (libbe.command.Command): @@ -158,7 +157,7 @@ def _xml_header(encoding): ' ', ' %s' % libbe.version.version()] for tag in ['branch-nick', 'revno', 'revision-id']: - value = libbe._version.version_info[tag.replace('-', '_')] + value = libbe.version.version_info[tag.replace('-', '_')] lines.append(' <%s>%s' % (tag, value, tag)) lines.append(' ') return lines -- cgit