summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-05-06 17:44:24 +0200
committerOlav Vitters <olav@vitters.nl>2020-05-06 17:44:24 +0200
commitc7e090f5a80436ecb2c3964f40d88188c04b2494 (patch)
treeca39f5e216a3c4afa8d1221bf91e3763eca5602a
parent3c4d5cbd10dee0796147e00ca0edbc7221cbdf69 (diff)
downloadmgagnome-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-xmgagnome24
1 files changed, 0 insertions, 24 deletions
diff --git a/mgagnome b/mgagnome
index effc78b..e041f51 100755
--- a/mgagnome
+++ b/mgagnome
@@ -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