Skip to content

Commit

Permalink
Use calibre's chardet
Browse files Browse the repository at this point in the history
  • Loading branch information
dustyneuron committed Aug 24, 2011
1 parent 93f37ee commit 2fc5adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/readability/encoding.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import chardet
from calibre.ebooks import chardet

def get_encoding(page):
text = re.sub('</?[^>]*>\s*', ' ', page)
Expand Down

0 comments on commit 2fc5adc

Please sign in to comment.