Skip to content

Commit e924217

Browse files
committed
Rename count variable
1 parent 6b0dba5 commit e924217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snekbox/memfs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def files(
142142
a TimeoutError will be raised.
143143
"""
144144
start_time = time.monotonic()
145-
added = 0
145+
count = 0
146146
files = glob.iglob(pattern, root_dir=str(self.output), recursive=True, include_hidden=False)
147147
for file in (Path(self.output, f) for f in files):
148148
if timeout and (time.monotonic() - start_time) > timeout:
@@ -158,11 +158,11 @@ def files(
158158
log.info(f"Skipping {file.name!r} as it has not been modified")
159159
continue
160160

161-
if added > limit:
161+
if count > limit:
162162
log.info(f"Max attachments {limit} reached, skipping remaining files")
163163
break
164164

165-
added += 1
165+
count += 1
166166
log.info(f"Found valid file for upload {file.name!r}")
167167
yield FileAttachment.from_path(file, relative_to=self.output)
168168

0 commit comments

Comments
 (0)