From 94550af95a500a80fefd79ba731cfcb8b0367793 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 19 Jan 2017 03:31:02 +0100 Subject: [PATCH] Minor style change. --- lslopt/lslbasefuncs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index c186089..bf3c0dd 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -49,7 +49,7 @@ from base64 import b64encode, b64decode # Also, Base64 needs the correct count of characters (len mod 4 can't be = 1). # The RE helps both in isolating the Base64 section and in trimming out the # offending characters; it just doesn't help with padding, with which Python is -# also picky. We deal with that in the code by padding with '='*(-length&3). +# also picky. We deal with that in the code by padding with '='*(-length & 3). # Despite what http://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html#Parsing-of-Floats # says, NaN(chars) does not work in LSL (which is relevant in vectors). @@ -960,7 +960,7 @@ def llBase64ToString(s): # In llBase64ToString, trailing NUL is stripped, and embedded NULs are # converted to "?". - byteseq = bytearray(b64decode(s + u'='*(-len(s)&3))) + byteseq = bytearray(b64decode(s + u'=' * (-len(s) & 3))) pos = 0 match = b64tos_re.search(byteseq, pos)