Mercurial > hg > webaudioevaluationtool
comparison python/comment_parser.py @ 2957:ca1abc3d8ef6
UTF-8 encoding comment and survey analysis scripts
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Tue, 21 Nov 2017 10:40:22 +0100 |
parents | 24b139760292 |
children |
comparison
equal
deleted
inserted
replaced
2956:356a09527abc | 2957:ca1abc3d8ef6 |
---|---|
83 commentstr = '' | 83 commentstr = '' |
84 if valuestr is None: | 84 if valuestr is None: |
85 valuestr = '' | 85 valuestr = '' |
86 | 86 |
87 # anonymous comments: | 87 # anonymous comments: |
88 #writer.writerow([commentstr]) # .encode("utf-8") | 88 # writer.writerow([commentstr.encode("utf-8")]) |
89 # comments with (file) name: | 89 # comments with (file) name: |
90 writer.writerow([file[:-4]] + [valuestr] + [commentstr.encode("utf-8")]) | 90 writer.writerow([file[:-4]] + [valuestr] + [commentstr.encode("utf-8")]) |
91 | 91 |
92 #TODO Replace 'new line' in comment with something else? | 92 #TODO Replace 'new line' in comment with something else? |
93 | 93 |