adriank / ObjectPath

The agile query language for semi-structured data
http://objectpath.org
MIT License
380 stars 93 forks source link

Quiet pytz #35

Closed PeterHeja closed 9 years ago

PeterHeja commented 9 years ago

If there is no pytz, then it will spew out errors into everything. With this patch, it won't complain, unless running in the interactive interpreter, or like ./script.py, but not if the source or output is not a tty (e.g.: echo "string" | ./script.py, ./script.py | grep -e "".)