Split long lines in various {Java, JavaScript, Python, C++, C, Rust} code, without changing behavior.

This commit is contained in:
Project Nayuki
2017-08-31 20:19:41 +00:00
parent dfe960aa60
commit 272ca8bb54
6 changed files with 31 additions and 12 deletions
+3 -1
View File
@@ -543,7 +543,9 @@ class QrCode(object):
This stateless pure function could be implemented as a (40*4)-cell lookup table."""
if not (1 <= ver <= 40):
raise ValueError("Version number out of range")
return QrCode._get_num_raw_data_modules(ver) // 8 - QrCode._ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * QrCode._NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver]
return QrCode._get_num_raw_data_modules(ver) // 8 \
- QrCode._ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] \
* QrCode._NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver]
# ---- Private tables of constants ----