generator: Fix strange unicode/str issue in python2
authorKyle Manna <kyle@kylemanna.com>
Mon, 21 Sep 2015 01:39:45 +0000 (18:39 -0700)
committerKyle Manna <kyle@kylemanna.com>
Mon, 21 Sep 2015 01:55:04 +0000 (18:55 -0700)
commit67cafac8f2f4797e195c5ee1e1fcf691129f8694
treef509bc173562f3fb7bd7d1e701b8fca9675eea5b
parente02c65389493d195ee868bf927923108a753bf57
generator: Fix strange unicode/str issue in python2

* Work around this by checking the appropriate class for the given
* environment.
generator/nanopb_generator.py