mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-30 17:21:15 +00:00
Tweaked minor comment and whitespace consistency in Python and C++ code.
This commit is contained in:
@@ -110,7 +110,7 @@ def do_segment_demo():
|
||||
|
||||
# ---- Utilities ----
|
||||
|
||||
def print_qr(qrcode):
|
||||
def print_qr(qrcode):
|
||||
"""Prints the given QrCode object to the console."""
|
||||
border = 4
|
||||
for y in range(-border, qrcode.get_size() + border):
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ def encode_text(text, ecl):
|
||||
code points (not UTF-16 code units). The smallest possible QR Code version is automatically chosen for the output."""
|
||||
seg = encode_text_to_segment(text)
|
||||
return encode_segments([seg], ecl)
|
||||
|
||||
|
||||
|
||||
def encode_text_to_segment(text):
|
||||
"""Returns a QR segment representing the given Unicode text string."""
|
||||
|
||||
Reference in New Issue
Block a user