aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-16 11:05:34 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-16 11:05:34 +0000
commit36b79316cd469f1f290c0dea7c2485cea2be474a (patch)
tree530fb7d9c15d64635593e2cb400110ca541e018c
parentkmonad (diff)
downloadscripts-36b79316cd469f1f290c0dea7c2485cea2be474a.tar.gz
scripts-36b79316cd469f1f290c0dea7c2485cea2be474a.zip
style updates
-rwxr-xr-xbin/colo22
l---------bin/w3mimgdisplay1
2 files changed, 2 insertions, 21 deletions
diff --git a/bin/colo b/bin/colo
index 1fe3af5..67cd899 100755
--- a/bin/colo
+++ b/bin/colo
@@ -2,7 +2,6 @@
# _*_ coding=utf-8 _*_
import argparse
-import code
import signal
import sys
from html.parser import HTMLParser
@@ -313,7 +312,8 @@ class ColoParser(HTMLParser):
COLO_LIST.append(data)
-def premain(argparser):
+def main():
+ argparser = Argparser()
signal.signal(signal.SIGINT, SigHandler_SIGINT)
PRINT_LIST = str()
lines = COLORS.split("\n")
@@ -396,23 +396,5 @@ def premain(argparser):
print(PRINT_LIST)
-def main():
- argparser = Argparser()
- if argparser.args.dbg:
- try:
- premain(argparser)
- except Exception as e:
- if hasattr(e, "__doc__"):
- print(e.__doc__)
- if hasattr(e, "message"):
- print(e.message)
- variables = globals().copy()
- variables.update(locals())
- shell = code.InteractiveConsole(variables)
- shell.interact(banner="DEBUG REPL")
- else:
- premain(argparser)
-
-
if __name__ == "__main__":
main()
diff --git a/bin/w3mimgdisplay b/bin/w3mimgdisplay
deleted file mode 120000
index 34cae35..0000000
--- a/bin/w3mimgdisplay
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/w3m/w3mimgdisplay \ No newline at end of file