K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / chardet /
server ip : 172.67.156.115

your ip : 172.69.130.111

H O M E


Filename/usr/lib/python2.7/dist-packages/chardet/test.py
Size498
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:53
Last modified10-Nov-2009 21:21
Last accessed06-Jul-2025 10:40
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
import sys, glob
sys.path.insert(0, '..')
from chardet.universaldetector import UniversalDetector

count = 0
u = UniversalDetector()
for f in glob.glob(sys.argv[1]):
print f.ljust(60),
u.reset()
for line in file(f, 'rb'):
u.feed(line)
if u.done: break
u.close()
result = u.result
if result['encoding']:
print result['encoding'], 'with confidence', result['confidence']
else:
print '******** no result'
count += 1
print count, 'tests'