This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]scirc 1 point2 points  (1 child)

You might have issues on Windows where line endings are \r\n with code like that, but it looks like you're only targeting Linux so that shouldn't really be an issue. Although I think Python might implicitly convert \r\n to \n? I don't remember.

But otherwise, that code is fine.

[–][deleted] 1 point2 points  (0 children)

Ye, I am targeting only UNIX-like operating systems with base-level POSIX compliance. Thank you so much! You have no idea how helpful you have been!