diff options
author | Colin Watson <cjwatson@debian.org> | 2020-06-04 02:40:40 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-06-04 02:40:40 +0100 |
commit | e96fe4e81d144f0a46a0f725f6c52ca7466cba26 (patch) | |
tree | b18fbbaef26f7323b4c2c735743ec8f9c9e05029 | |
parent | ffe009db773defd7b2b8832778f488a23c8f7ca7 (diff) | |
download | openid-e96fe4e81d144f0a46a0f725f6c52ca7466cba26.tar.gz |
Fix flake8 complaints
flake8 complained about "[E741] ambiguous variable name 'l'" in a few
places.
-rw-r--r-- | openid/cryptutil.py | 4 | ||||
-rw-r--r-- | openid/test/test_accept.py | 2 | ||||
-rw-r--r-- | openid/test/test_openidyadis.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/openid/cryptutil.py b/openid/cryptutil.py index ded17d8..7e8cd0a 100644 --- a/openid/cryptutil.py +++ b/openid/cryptutil.py @@ -75,8 +75,8 @@ def binaryToLong(s): return bytes_to_int(s) -def longToBase64(l): - return toBase64(int_to_bytes(l)) +def longToBase64(value): + return toBase64(int_to_bytes(value)) def base64ToLong(s): diff --git a/openid/test/test_accept.py b/openid/test/test_accept.py index b10934a..aa13d87 100644 --- a/openid/test/test_accept.py +++ b/openid/test/test_accept.py @@ -89,7 +89,7 @@ class MatchAcceptTest(unittest.TestCase): def runTest(self): lines = getTestData() chunks = chunk(lines) - data_sets = [parseLines(l) for l in chunks] + data_sets = [parseLines(line) for line in chunks] for data in data_sets: lnos = [] lno, accept_header = data['accept'] diff --git a/openid/test/test_openidyadis.py b/openid/test/test_openidyadis.py index 4e77b60..3d17cb1 100644 --- a/openid/test/test_openidyadis.py +++ b/openid/test/test_openidyadis.py @@ -66,10 +66,10 @@ server_url_options = [ # Used for generating test data -def subsets(l): +def subsets(lst): """Generate all non-empty sublists of a list""" subsets_list = [[]] - for x in l: + for x in lst: subsets_list += [[x] + t for t in subsets_list] return subsets_list |