aboutsummaryrefslogtreecommitdiff
path: root/PyQRNative.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-07-23 12:28:12 +0200
committercedricbonhomme <devnull@localhost>2010-07-23 12:28:12 +0200
commitdb70d267ebc6eca375c2a5b3253ed246dddcb2ec (patch)
treea99c65cb831561019d7e79eb771566f651054187 /PyQRNative.py
parentAdded PyQRNative module. (diff)
downloadnewspipe-db70d267ebc6eca375c2a5b3253ed246dddcb2ec.tar.gz
newspipe-db70d267ebc6eca375c2a5b3253ed246dddcb2ec.tar.bz2
newspipe-db70d267ebc6eca375c2a5b3253ed246dddcb2ec.zip
Minor improvement when a URL is too long for the QR Code generation.
Diffstat (limited to 'PyQRNative.py')
-rw-r--r--PyQRNative.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/PyQRNative.py b/PyQRNative.py
index 2d3dd489..929e8e49 100644
--- a/PyQRNative.py
+++ b/PyQRNative.py
@@ -278,9 +278,9 @@ class QRCode:
if (buffer.getLengthInBits() > totalDataCount * 8):
raise Exception("code length overflow. ("
- + buffer.getLengthInBits()
+ + str(buffer.getLengthInBits())
+ ">"
- + totalDataCount * 8
+ + str(totalDataCount * 8)
+ ")")
#// end code
bgstack15