8000 Cleanup · awesome-python/html5lib-python@4d53508 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0