xref: /openbsd-src/usr.bin/file/magdir/python (revision 380b5c7d6f55f6a87af6c6189307b5cf65aa3391)
1*380b5c7dSchl#	$OpenBSD: python,v 1.2 2008/05/08 01:40:57 chl Exp $
236c0c0feStedu
336c0c0feStedu#------------------------------------------------------------------------------
436c0c0feStedu# python:  file(1) magic for python
536c0c0feStedu#
636c0c0feStedu# From: David Necas <yeti@physics.muni.cz>
736c0c0feStedu# often the module starts with a multiline string
836c0c0feStedu0	string		"""	a python script text executable
936c0c0feStedu# MAGIC as specified in Python/import.c (1.5 to 2.3.0a)
1036c0c0feStedu# 20121  ( YEAR - 1995 ) + MONTH  + DAY (little endian followed by "\r\n"
1136c0c0feStedu0	belong		0x994e0d0a	python 1.5/1.6 byte-compiled
1236c0c0feStedu0	belong		0x87c60d0a	python 2.0 byte-compiled
1336c0c0feStedu0	belong		0x2aeb0d0a	python 2.1 byte-compiled
1436c0c0feStedu0	belong		0x2ded0d0a	python 2.2 byte-compiled
1536c0c0feStedu0	belong		0x3bf20d0a	python 2.3 byte-compiled
16*380b5c7dSchl0	belong		0x6df20d0a	python 2.4 byte-compiled
17*380b5c7dSchl0	belong		0xb3f20d0a	python 2.5 byte-compiled
18*380b5c7dSchl
19*380b5c7dSchl0	string/b  #!\ /usr/bin/python	python script text executable
20*380b5c7dSchl
21