Skip to content

Commit 7912334

Browse files
committed
Pylint tweaks
1 parent 5497514 commit 7912334

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Twitter_API/binascii.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
"""
2+
Copied and tweaked from micropython-lib
3+
"""
14

25
PAD = '='
36

7+
#pylint:disable=bad-whitespace,invalid-name
48
table_a2b_base64 = [
59
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
610
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
@@ -19,11 +23,13 @@
1923
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
2024
-1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
2125
]
26+
#pylint:enable=bad-whitespace
27+
2228
def _transform(n):
2329
if n == -1:
2430
return '\xff'
25-
else:
26-
return chr(n)
31+
return chr(n)
32+
2733
table_a2b_base64 = ''.join(map(_transform, table_a2b_base64))
2834
assert len(table_a2b_base64) == 256
2935

0 commit comments

Comments
 (0)