Add a bunch of missing python docstrings.

This appeases pylint, so un-disable its docstring warning.
This commit is contained in:
Avery Pennarun 2018-12-14 08:38:53 +00:00
commit 29f939013e
23 changed files with 89 additions and 4 deletions

View file

@ -1,5 +1,7 @@
"""Simple integer conversion helper."""
def atoi(v):
"""Convert v to an integer, or return 0 on error, like C's atoi()."""
try:
return int(v or 0)
except ValueError: