diff options
author | W. Trevor King <wking@drexel.edu> | 2010-09-05 21:20:46 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-09-05 21:20:46 -0400 |
commit | 70910ac62711282502e67d31b8600bd5beb43cc9 (patch) | |
tree | 9b9b95e149b06490c36b860669c760a1038ab8ad /libbe/command/show.py | |
parent | b8ad90ec382ec05af6473be7de4f88aed6f641ae (diff) | |
download | bugseverywhere-70910ac62711282502e67d31b8600bd5beb43cc9.tar.gz |
Default to "unknown" version info if libbe._version is missing.
Diffstat (limited to 'libbe/command/show.py')
-rw-r--r-- | libbe/command/show.py | 3 |
1 files changed, 1 insertions, 2 deletions
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): ' <version>', ' <tag>%s</tag>' % 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</%s>' % (tag, value, tag)) lines.append(' </version>') return lines |