Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Optimize by removing redundant list call (#602) #615

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sayandipdutta
Copy link

closes #602

Avoid double iteration by removing list call on a list object.

-        contents = list(f.readlines())
+        contents = f.readlines()

Avoid double iteration by removing `list` call on a `list` object.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimization: Remove redundant list call in check_file in Build/check_indents.py
3 participants