Tweaked minor comment and whitespace consistency in Python and C++ code.

This commit is contained in:
Nayuki Minase
2016-04-16 01:17:15 +00:00
parent 3fda371340
commit 1b2a554121
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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."""