Bugfix: Must use f.truncate() in code that modifies hivetool.
Bugfix: Must use f.truncate() in code that modifies hivetool.

Do not use string.endswith(), since it's not available in Python 1.5.

astrand/hiveconf,astrand/hiveconf