Message120703
| Author | vstinner |
|---|---|
| Recipients | belopolsky, brett.cannon, eli.bendersky, terry.reedy, vstinner |
| Date | 2010-11-08.01:47:12 |
| SpamBayes Score | 0.0025366603 |
| Marked as misclassified | No |
| Message-id | <1289180836.84.0.156023568366.issue10342@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
+ try: + with open(filename, 'rb') as fp: + encoding, _ = tokenize.detect_encoding(fp.readline) + except IOError: + encoding = None You should use 'utf-8' instead of None (which will fall back to the locale encoding) here. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-11-08 01:47:17 | vstinner | set | recipients: + vstinner, brett.cannon, terry.reedy, belopolsky, eli.bendersky |
| 2010-11-08 01:47:16 | vstinner | set | messageid: <1289180836.84.0.156023568366.issue10342@psf.upfronthosting.co.za> |
| 2010-11-08 01:47:13 | vstinner | link | issue10342 messages |
| 2010-11-08 01:47:12 | vstinner | create | |