<s> __version__ = "<STR_LIT>" <EOL> from sys import version_info <EOL> def detect ( aBuf ) : <EOL> if ( ( version_info < ( <NUM_LIT:3> , <NUM_LIT:0> ) and isinstance ( aBuf , unicode ) ) or <EOL> ( version_info >= ( <NUM_LIT:3> , <NUM_LIT:0> ) and not isinstance ( aBuf , bytes ) ) ) : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> from . import universaldetector <EOL> u = universaldetector . UniversalDetector ( ) <EOL> u . reset ( ) <EOL> u . feed ( aBuf ) <EOL> u . close ( ) <EOL> return u . result </s>
