Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def is_binary(filename):
    with open(filename, 'rb') as f:
        CHUNKSIZE = 1024
        while True:
            chunk = f.read(CHUNKSIZE)
            if '\0' in chunk: return True
            if len(chunk) < CHUNKSIZE: break
    return False
        


src/c/o/CodeShow-0.2.2/codeshow/__init__.py   CodeShow(Download)
				file_path = os.path.join(dirpath, filename)
				print 'Processing %s' % file_path
				if util.is_binary(file_path): continue
				included_files.append(filename)
				self.generate_file(file_path)