diff options
author | Olav Vitters <olav@vitters.nl> | 2020-05-06 17:44:24 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-05-06 17:44:24 +0200 |
commit | c7e090f5a80436ecb2c3964f40d88188c04b2494 (patch) | |
tree | ca39f5e216a3c4afa8d1221bf91e3763eca5602a | |
parent | 3c4d5cbd10dee0796147e00ca0edbc7221cbdf69 (diff) | |
download | mgagnome-c7e090f5a80436ecb2c3964f40d88188c04b2494.tar mgagnome-c7e090f5a80436ecb2c3964f40d88188c04b2494.tar.gz mgagnome-c7e090f5a80436ecb2c3964f40d88188c04b2494.tar.bz2 mgagnome-c7e090f5a80436ecb2c3964f40d88188c04b2494.tar.xz mgagnome-c7e090f5a80436ecb2c3964f40d88188c04b2494.zip |
call_editor: not used anymore, remove it
-rwxr-xr-x | mgagnome | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -265,30 +265,6 @@ def distinct(iterable, keyfunc=None): seen.add(key) yield item -def call_editor(filename): - """Return a sequence of possible editor binaries for the current platform""" - - editors = [] - - for varname in 'VISUAL', 'EDITOR': - if varname in os.environ: - editors.append(os.environ[varname]) - - editors.extend(('/usr/bin/editor', 'vi', 'pico', 'nano', 'joe')) - - for editor in editors: - try: - ret = subprocess.call([editor, filename]) - except OSError as exc: - if exc.errno == 2: - continue - raise - - if ret == 127: - continue - - return True - class URLLister(HTMLParser): """Parse links from HTML""" # pylint: disable=abstract-method |