diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-03-30 22:16:37 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-30 22:16:37 +0100 |
commit | 6669d427f87ec62a86a680a542d2f87f2d65cc80 (patch) | |
tree | 80e08e1830eb6283fffa2d3db600ad00090d1970 /libbe/ui/util/editor.py | |
parent | bc53c496220b283773f65762d4283c8f1e480131 (diff) | |
download | bugseverywhere-6669d427f87ec62a86a680a542d2f87f2d65cc80.tar.gz |
Used PyCharms inspectors.
Diffstat (limited to 'libbe/ui/util/editor.py')
-rw-r--r-- | libbe/ui/util/editor.py | 4 |
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: |