4bcf65 Handle empty files in detect_encodings

Authored and Committed by Jeremy Cline 8 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></jeremy@jcline.org>
    
        
file modified
+4 -0