aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2007-07-16 13:33:06 -0400
committerAaron Bentley <abentley@panoramicfeedback.com>2007-07-16 13:33:06 -0400
commit6219c38d9c2bd6a8eeaf320ed0f1fa4bdf1b1fba (patch)
tree893d06dec46062df2146482e9dd9bf2b4d2bec7a /becommands
parente8d004d66e6de5bb29cc874290d2114cb7146d51 (diff)
downloadbugseverywhere-6219c38d9c2bd6a8eeaf320ed0f1fa4bdf1b1fba.tar.gz
Add support for VISUAL
Diffstat (limited to 'becommands')
-rw-r--r--becommands/comment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index 5f7128d..b211cf6 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -33,7 +33,8 @@ def execute(args):
True
>>> comment.in_reply_to is None
True
- >>> del os.environ["EDITOR"]
+ >>> if 'EDITOR' in os.environ:
+ ... del os.environ["EDITOR"]
>>> execute(["b"])
Traceback (most recent call last):
UserError: No comment supplied, and EDITOR not specified.