[tor-commits] [bridgedb/master] Update documented return value.
phw at torproject.org
phw at torproject.org
Wed Feb 19 18:26:38 UTC 2020
commit 1f614896ed3442c8758e7ea10bef0c1fc366a4c1
Author: Philipp Winter <phw at nymity.ch>
Date: Fri Feb 14 10:07:47 2020 -0800
Update documented return value.
The function is returning a bytes, and not a str.
---
bridgedb/qrcodes.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bridgedb/qrcodes.py b/bridgedb/qrcodes.py
index 6030a42..3cb3a89 100644
--- a/bridgedb/qrcodes.py
+++ b/bridgedb/qrcodes.py
@@ -33,8 +33,8 @@ def generateQR(bridgelines, imageFormat='JPEG', bridgeSchema=False):
client.
:param bool bridgeSchema: If ``True``, prepend ``'bridge://'`` to the
beginning of each bridge line before QR encoding.
- :rtype: str or ``None``
- :returns: The generated QRCode, as a string.
+ :rtype: bytes or ``None``
+ :returns: The generated QRCode, as a bytes.
"""
logging.debug("Attempting to encode bridge lines into a QRCode...")
More information about the tor-commits
mailing list