Commit 6cbfcb85 authored by Logan Chien's avatar Logan Chien
Browse files

def-tool: Replace buf.size() with len(buf).

This commit replaces `buf.size()` with `len(buf)`.  The former
returns the file size and the later returns the mapped buffer size.
`len(buf)` is more general because `buf.size()` is only available to
`mmap` instances.

Test: tests/run.py
Change-Id: I66e8ecd5b475f4fc686aba062b3486ce4ac7f882
parent c78aa7e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment