Remove building with NOCRYPTO option
[minix.git] / external / bsd / file / dist / python / example.py
blob0cd0b5e7ec2b1698c85a8118baca209ad40b0549
1 #! /usr/bin/python
3 import magic
5 ms = magic.open(magic.NONE)
6 ms.load()
7 tp = ms.file("/bin/ls")
8 print (tp)
10 f = open("/bin/ls", "rb")
11 buf = f.read(4096)
12 f.close()
14 tp = ms.buffer(buf)
15 print (tp)
17 ms.close()