Skip to content

Commit 2adaa0d

Browse files
committed
파일 읽기 인코딩 오류 수정
1 parent 19c4222 commit 2adaa0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_html.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def test_extract_table():
88
url = 'https://ko.wikipedia.org/wiki/%EC%95%A8%EB%9F%B0_%ED%8A%9C%EB%A7%81'
99
filename = http.download(url, 'turing_wiki.html')
10-
with open(filename) as f:
10+
with open(filename, encoding='utf-8') as f:
1111
html_doc = html.Html(f)
1212
# 파일 삭제
1313
os.unlink(filename)

0 commit comments

Comments
 (0)