chiark
/
gitweb
/
~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian/: Use `dh_python2' for packaging.
[mLib-python]
/
report.pyx
diff --git
a/report.pyx
b/report.pyx
index 523dbe047c270f5d9c556261bbc7ab9b5fbae421..9d19ed2a261a1d64714256b3d853b0efca69b5e6 100644
(file)
--- a/
report.pyx
+++ b/
report.pyx
@@
-28,6
+28,7
@@
cdef char *_progstring
_progstring = NULL
def ego(char *prog):
_progstring = NULL
def ego(char *prog):
+ """ego(PROG): set program name"""
global quis, _progstring
if _progstring:
xfree(_progstring)
global quis, _progstring
if _progstring:
xfree(_progstring)
@@
-36,8
+37,10
@@
def ego(char *prog):
quis = _quis()
def moan(char *msg):
quis = _quis()
def moan(char *msg):
+ """moan(MSG): report a warning"""
_moan('%s', msg)
def die(char *msg, rc = 126):
_moan('%s', msg)
def die(char *msg, rc = 126):
+ """die(MSG, [rc = 126]): report a fatal error and exit"""
_moan('%s', msg)
raise SystemExit, rc
_moan('%s', msg)
raise SystemExit, rc