firebreath/FireBreath — pull request #139 by sportmonkey (2014-11-04 10:20:45+00:00)
Title: Python 3 Updates

Python 2 Fix:

fbgen.py
> template = Template(file) moved to within control structure to prevent load for binary

Python 3 Updates:

fbgen\gentemplates.py duplicated to fbgen\gentemplates_py3.py
> open(fn) to open(fn, 'r') to explicitly open as string
> print params[] now print(params[])
> raw_input to input

fbgen.py duplicated to fbgen_py3.py
> from fbgen\gentemplates.py pointed to fbgen\gentemplates_py3.py
> ConfigParser now configparser
> print params[] now print(params[])
> write(open(fp, 'wb')) to
| with open(fp, 'w') as file:
| fp.write(file)
> raw_input to input
> input var renamed to inputFile