Skip to content

Commit d64c4f3

Browse files
committed
Applied minor improvement
1 parent b37e8a1 commit d64c4f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codext/__common__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,7 @@ def __score(prev_input, input, prev_encoding, encoding, codec, heuristic=False,
13331333
no_error, transitive = codec.parameters.get('no_error', False), sc.get('transitive', False)
13341334
# ignore encodings that fail to decode with their default errors handling value
13351335
try:
1336-
new_input = decode(input, encoding)
1336+
new_input = codec.decode(input)[0]
13371337
except:
13381338
return
13391339
# ignore encodings that give an output identical to the input (identity transformation) or to the previous input

0 commit comments

Comments
 (0)