aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui/util/editor.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-03-30 22:16:37 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-03-30 22:16:37 +0100
commit6669d427f87ec62a86a680a542d2f87f2d65cc80 (patch)
tree80e08e1830eb6283fffa2d3db600ad00090d1970 /libbe/ui/util/editor.py
parentbc53c496220b283773f65762d4283c8f1e480131 (diff)
downloadbugseverywhere-6669d427f87ec62a86a680a542d2f87f2d65cc80.tar.gz
Used PyCharms inspectors.
Diffstat (limited to 'libbe/ui/util/editor.py')
-rw-r--r--libbe/ui/util/editor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/ui/util/editor.py b/libbe/ui/util/editor.py
index 8412ff6..5ab519f 100644
--- a/libbe/ui/util/editor.py
+++ b/libbe/ui/util/editor.py
@@ -64,14 +64,14 @@ def editor_string(comment=None, encoding=None):
>>> del os.environ["EDITOR"]
>>> del os.environ["VISUAL"]
"""
- if encoding == None:
+ if encoding is None:
encoding = libbe.util.encoding.get_text_file_encoding()
editor = None
for name in ('VISUAL', 'EDITOR'):
if name in os.environ and os.environ[name] != '':
editor = os.environ[name]
break
- if editor == None:
+ if editor is None:
raise CantFindEditor()
fhandle, fname = tempfile.mkstemp()
try: