Clarify the purpose of the for loop

This commit is contained in:
twangboy 2017-08-29 17:47:01 -06:00
parent b55172d5dc
commit 352fe69e35
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -2385,9 +2385,11 @@ def blockreplace(path,
# end of block detected
in_block = False
# Separate the content into lines. Account for Windows
# style line endings using os.linesep, then by linux
# style line endings
# Handle situations where there may be multiple types
# of line endings in the same file. Separate the content
# into lines. Account for Windows-style line endings
# using os.linesep, then by linux-style line endings
# using '\n'
split_content = []
for linesep_line in content.split(os.linesep):
for content_line in linesep_line.split('\n'):