From 4889440b63b62e99366bb119fc63e2d960e51883 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 30 Jul 2011 11:46:27 -0400 Subject: Add ImportError to UnknownCommand output in get_command doctest. This catches the test result up after: Commit: 0d5c9c68e947617c9d073d5f19351bdd8f3866db Author: W. Trevor King Date: Wed May 25 10:30:19 2011 -0400 Attach ImportError message to UnknownCommand to aid debugging. --- libbe/command/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'libbe/command') diff --git a/libbe/command/base.py b/libbe/command/base.py index 311791f..11835ee 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -73,6 +73,7 @@ def get_command(command_name): ... except UnknownCommand, e: ... print e Unknown command 'asdf' + (No module named asdf) >>> repr(get_command('list')).startswith(" Date: Wed, 9 Nov 2011 06:54:43 -0500 Subject: Ran update_copyright.py. --- libbe/command/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'libbe/command') diff --git a/libbe/command/base.py b/libbe/command/base.py index 11835ee..ab98cb1 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -1,4 +1,5 @@ # Copyright (C) 2009-2011 Chris Ball +# Phil Schumm # Robert Lehmann # W. Trevor King # -- cgit From 6f2d652b2697d7aec6bb48a2bf4d6fff1ef03521 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 13 Nov 2011 21:06:43 -0500 Subject: Fix my busted 1512c0e2a64e patch to libbe/util/encoding.py. Some temporary changes to encoding.py seem to have been added to commit 1512c0e2a64e19c8d4e5697257a4df5ddd8bc727 Author: W. Trevor King Date: Tue Nov 8 07:14:43 2011 -0500 by accident. The initial change came from discussions with Niall Douglas, during which I realized that "filesystem encoding" ususally means the encoding for the *path*, not the *contents*. To avoid further confusion I'd renamed `get_filesystem_encoding` to the less ambiguous `get_text_file_encoding`. This commit should complete the transition. --- libbe/command/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/command') diff --git a/libbe/command/html.py b/libbe/command/html.py index 7420ce8..a6bd2a2 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -149,7 +149,7 @@ class HTMLGen (object): if encoding != None: self.encoding = encoding else: - self.encoding = libbe.util.encoding.get_filesystem_encoding() + self.encoding = libbe.util.encoding.get_text_file_encoding() self._load_templates(template_dir) self.min_id_length = min_id_length -- cgit