From a7c116bcd6be86217122ac8866e7b15663d27a64 Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Sat, 7 Jul 2012 11:35:00 +0900 Subject: [PATCH] deleted warnings because there is confidence. --- src/cchardet/cchardet.pyx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cchardet/cchardet.pyx b/src/cchardet/cchardet.pyx index c506133..94cbd83 100644 --- a/src/cchardet/cchardet.pyx +++ b/src/cchardet/cchardet.pyx @@ -42,7 +42,6 @@ def detect_with_confidence(char *msg): if result == -1: # Error, signal with a negative number raise Exception("Error, signal with a negative number") elif result == 1: # Need more data - warnings.warn("Need more data",UserWarning) detected_charset = csd_close2(csd, &confidence) ret = { "encoding":detected_charset,