Skip to content

Commit 4d53508

Browse files
author
James Graham
committed
Cleanup
1 parent 32db204 commit 4d53508

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

parse.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def parse():
1818
optParser = getOptParser()
1919
opts,args = optParser.parse_args()
20-
encoding = None
20+
encoding = "utf8"
2121

2222
try:
2323
f = args[-1]
@@ -30,7 +30,8 @@ def parse():
3030
if contentType:
3131
(mediaType, params) = cgi.parse_header(contentType)
3232
encoding = params.get('charset')
33-
except: pass
33+
except:
34+
pass
3435
elif f == '-':
3536
f = sys.stdin
3637
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy