#!/bin/sh
# This checks that a python file is indented only with TABs before running it.
# Won't work for modules, so it's a bit silly to say the least.
grep -q -v '^	* ' "$1" 2>/dev/null
case $? in
1)
	echo >&2 "error: indent contains spaces"
	exit 127
	;;
*)
	exec python $PY_OPTS "$@"
	;;
esac
