Skip to content

Commit 762037e

Browse files
authored
Fix ineffective chardet MINIMUM_THRESHOLD patch (#6024)
1 parent b30c169 commit 762037e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

data/txt/sha256sums.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ ccd3b414727ef75f5d533f9518198b61322781f3ee53a86643763e029b2874c0 lib/core/dump.
182182
914a13ee21fd610a6153a37cbe50830fcbd1324c7ebc1e7fc206d5e598b0f7ad lib/core/log.py
183183
67ea32c993cbf23cdbd5170360c020ca33363b7c516ff3f8da4124ef7cb0254d lib/core/optiondict.py
184184
d197388e8e2aabe19f2529bfcac780e18e22a905d01319080d7afe4cb2b1c4c9 lib/core/option.py
185-
789320dcb3f93137d3065080ee98429280bf10b20b66a1c08d3fcc1747b30d94 lib/core/patch.py
185+
c65ce3cd38ee85c443c6619cfea84920390bad171f2999b95149485c0d1bc4a2 lib/core/patch.py
186186
49c0fa7e3814dfda610d665ee02b12df299b28bc0b6773815b4395514ddf8dec lib/core/profiling.py
187187
03db48f02c3d07a047ddb8fe33a757b6238867352d8ddda2a83e4fec09a98d04 lib/core/readlineng.py
188188
48797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py

lib/core/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _(self, *args):
8585
_http_client.LineAndFileWrapper.readline = _
8686

8787
# to prevent too much "guessing" in case of binary data retrieval
88-
thirdparty.chardet.universaldetector.MINIMUM_THRESHOLD = 0.90
88+
thirdparty.chardet.universaldetector.UniversalDetector.MINIMUM_THRESHOLD = 0.90
8989

9090
match = re.search(r" --method[= ](\w+)", " ".join(sys.argv))
9191
if match and match.group(1).upper() != PLACE.POST:

0 commit comments

Comments
 (0)