From 2a887df91a2d3928fc6db597b013e694b1745699 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Wed, 2 Sep 2009 16:28:41 +0200 Subject: [PATCH] utils.CalculateDirectorySize: Don't redefine builtin Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Luca Bigliardi <shammash@google.com> --- lib/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.py b/lib/utils.py index aff0a3e20..5a23d70b4 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1871,8 +1871,8 @@ def CalculateDirectorySize(path): size = 0 for (curpath, _, files) in os.walk(path): - for file in files: - st = os.lstat(os.path.join(curpath, file)) + for filename in files: + st = os.lstat(os.path.join(curpath, filename)) size += st.st_size return BytesToMebibyte(size) -- GitLab