summaryrefslogtreecommitdiff
path: root/tools.py
diff options
context:
space:
mode:
authormikeos <mike.osipov@gmail.com>2013-09-30 22:11:41 +0400
committermikeos <mike.osipov@gmail.com>2013-09-30 22:23:41 +0400
commit6f6c2754c4b73946eab3faa4dc7e9e672eb373b8 (patch)
tree3daa8109c4c0d5978a1aa83112b4dafdebe52cde /tools.py
parent0ae5a430e4f92ee7bf9e458cf584a0a12fd5c25a (diff)
setup.py
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/tools.py b/tools.py
deleted file mode 100644
index 69d8bdb..0000000
--- a/tools.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import sys
-import os
-
-progname = os.path.basename(sys.argv[0])
-
-def quote(s, ch = '"'):
- return s if " " not in s else ch + s + ch
-
-def printf(fmt, *args):
- out = fmt % args
- sys.stdout.write(out)
-
- if out[-1] != '\n':
- sys.stdout.flush()
-
-def printerr(fmt, *args):
- msg = fmt % args
- if msg[-1] != "\n":
- msg += "\n"
- sys.stderr.write("** " + progname + ": " + msg)
-
-def debug(fmt, *args):
- msg = fmt % args
- if msg[-1] != "\n":
- msg += "\n"
- sys.stderr.write("-- " + msg)