uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
375 stars 103 forks source link

--output csv line terminators are windows like even in linux #137

Open alexandrezia opened 11 years ago

alexandrezia commented 11 years ago

I'm using Amazon AMI Linux (CentOS) All glacier-cmd --output csv ... commands Are returning "\r\n" as line terminators, So I had to change all occurrences of: csvwriter = csv.writer(sys.stdout, quoting=csv.QUOTE_ALL) to csvwriter = csv.writer(sys.stdout, quoting=csv.QUOTE_ALL, lineterminator='\n') To get unix line terminators. Can you please make line terminators automatically selected depending on OS (windows,unix) Thanks for this great tool