❦ 11 septembre 2013 12:28 CEST, Jakub Wilk <jwilk@debian.org> : >>>* URL : https://github.com/audreyr/binaryornot >>>* License : BSD >>> Programming Lang: Python >>> Description : Ultra-lightweight pure Python package to check if a file is binary or text. >>> >>> This Python package provides a function to check if a file is a >>> text file or a binary file. It uses the same heuristic as file(1) >>> by looking at the first 1024 bytes of the file and checks that all >>> characters are printable. >> >>do we need a package for that? > > I would mind a library that does only one little thing, if it did it > right, was well-documented and came with a decent test > suite. Unfortunately, binaryornot is currently not like that. Its bug > density is rather high: [...] Hi Jakub! I have blocked the package to avoid migration to testing. I will try to fix those issues to get something saner. If not, I will ask for removal. -- Watch out for off-by-one errors. - The Elements of Programming Style (Kernighan & Plauger)
Attachment:
signature.asc
Description: PGP signature