Skip to content

Commit 7ac3d44

Browse files
committed
removed unnecessary comments
1 parent c11bb5a commit 7ac3d44

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/together/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Multipart upload constants
2222
MIN_PART_SIZE_MB = 5 # Minimum part size (S3 requirement)
23-
TARGET_PART_SIZE_MB = 250 # Target part size for large files
23+
TARGET_PART_SIZE_MB = 250 # Target part size
2424
MAX_MULTIPART_PARTS = 250 # Maximum parts per upload
2525
MULTIPART_UPLOAD_TIMEOUT = 300 # Timeout in seconds for uploading each part
2626
MULTIPART_THRESHOLD_GB = 5.0 # threshold for switching to multipart upload

src/together/utils/files.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,10 @@ def _check_utf8(file: Path) -> Dict[str, Any]:
366366
report_dict: Dict[str, Any] = {}
367367

368368
try:
369-
# Stream file in chunks to avoid loading entire file into memory
370-
chunk_size = 8192 # 8KB chunks
369+
chunk_size = 8192
371370
with file.open(encoding="utf-8") as f:
372371
for chunk in iter(lambda: f.read(chunk_size), ""):
373-
pass # UTF-8 decoding happens automatically during read
372+
pass
374373

375374
report_dict["utf8"] = True
376375
except UnicodeDecodeError as e:

0 commit comments

Comments
 (0)