File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -373,10 +373,10 @@ def check(self, title):
373
373
374
374
def decode (self , s ):
375
375
"""Decode string."""
376
- import chardet
376
+ from charset_normalizer import detect
377
377
r = ""
378
378
try : r = s .decode (self .encoding , self .encoding_errors )
379
- except UnicodeDecodeError : r = s .decode (chardet . detect (s )["encoding" ], self .encoding_errors )
379
+ except UnicodeDecodeError : r = s .decode (detect (s )["encoding" ], self .encoding_errors )
380
380
return r
381
381
382
382
def handle_title (self , path_or_file ):
Original file line number Diff line number Diff line change 9
9
10
10
11
11
NAME = 'fulltext'
12
- VERSION = '0.10 '
12
+ VERSION = '0.11 '
13
13
if os .name == 'nt' and not sys .maxsize > 2 ** 32 :
14
14
# https://github.com/btimby/fulltext/issues/79
15
15
raise RuntimeError ("Python 32 bit is not supported" )
You can’t perform that action at this time.
0 commit comments