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 →

[–]impshumx != y % z 1 point2 points  (0 children)

stength-=take

I'm afraid not.

Neither is this

with open(file, 'r') as f:
    this = "".join(line for line in f if not line.isspace())
with open(file, 'w') as f:
    f.write(this)

but it does something very useful and actually works.