From 593ff020dcd065a9be529b90e63dfddbd60a56e3 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 6 Feb 2020 20:18:09 -0800 Subject: [PATCH] Add docstring to hex_byte. --- voussoirkit/sqlhelpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/sqlhelpers.py b/voussoirkit/sqlhelpers.py index 533c3b2..327d498 100644 --- a/voussoirkit/sqlhelpers.py +++ b/voussoirkit/sqlhelpers.py @@ -114,6 +114,9 @@ def update_filler(pairs, where_key): return (qmarks, bindings) def hex_byte(byte): + ''' + Return the hex string for this byte. 00-ff. + ''' if byte not in range(0, 256): raise ValueError(byte) return hex(byte)[2:].rjust(2, '0')