Fix pycodestyle issue 77/181877/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 18 Jun 2018 11:41:52 +0000 (13:41 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 18 Jun 2018 11:51:47 +0000 (13:51 +0200)
pycodestyle: E741 ambiguous variable name 'l'

Change-Id: Id70e425e51da8bcd10afd579080d20b2cc9c9d4c

python/yaca/__init__.py

index ab0e283bedab09f1dc5051ff9d5ccb46fbe9098b..3efd0bd8459f1fd299512c3edd3b2b48bd15f489 100755 (executable)
@@ -255,8 +255,8 @@ def cleanup():
 
 def memcmp(first, second, length):
     """Safely compares first length bytes of two buffers."""
-    l = _ctypes.c_size_t(length)
-    return _lib.yaca_memcmp(first, second, l)
+    length = _ctypes.c_size_t(length)
+    return _lib.yaca_memcmp(first, second, length)
 
 
 def random_bytes(length):