mkosek / pagure

Forked from pagure 7 years ago
Clone

4bcf65f Handle empty files in detect_encodings

Authored and Committed by jcline 7 years ago
    Handle empty files in detect_encodings
    
    If there's no data, chardet returns ``None``. This just returns ASCII
    with 100% confidence if the file is empty.
    
    Signed-off-by: Jeremy Cline <jeremy@jcline.org>
    
        
file modified
+4 -0