From e2965575907ff05a7249a3a213e0dce8a8217ef9 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 22 Dec 2005 02:59:52 -0500 Subject: Various Windows-related bugfixes --- libbe/utility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbe/utility.py') diff --git a/libbe/utility.py b/libbe/utility.py index 3d805cd..e62f2cd 100644 --- a/libbe/utility.py +++ b/libbe/utility.py @@ -102,7 +102,8 @@ def editor_string(): """Invokes the editor, and returns the user_produced text as a string - >>> del os.environ["EDITOR"] + >>> if "EDITOR" in os.environ: + ... del os.environ["EDITOR"] >>> editor_string() Traceback (most recent call last): CantFindEditor: Can't find editor to get string from -- cgit