diff options
Diffstat (limited to 'libbe/utility.py')
-rw-r--r-- | libbe/utility.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |