An analogue of Polya's theorem for piecewise holomorphic functions. (December 2015)