fix folly build under python 3
authorMarcin Pawlowski <mpawlowski@fb.com>
Mon, 26 Jan 2015 21:57:21 +0000 (13:57 -0800)
committerwoo <woo@fb.com>
Mon, 2 Feb 2015 21:12:46 +0000 (13:12 -0800)
commita955b391aecb569f68b05bf216e0014a30ddb6cb
treef289cfed5c6606b0d262a37aad0c1af5dd6909c3
parent8c74c8066767b4061c2a5d97b615a2c05e7c8394
fix folly build under python 3

Summary:
Make python scripts compatible woth both python 3 and python 2.
Added ignore rule for test/glog directory.

Facebook:
While verifying some issues reported on github i noticed that
folly does not build when python 3 is the default (at least on arch
linux). As it turns out it is fairly easy to make our python files
compatible with both python 2 and python 3.
I also added test/glog*/* to gitignore so that it is easier to work
on folly outside of facebook.

Test Plan:
unit tests in fb envirnoment and unit test on arch linux
(python 3.4.2, gcc 4.9.2)

Reviewed By: njormrod@fb.com

Subscribers: trunkagent, folly-diffs@

FB internal diff: D1801368

Signature: t1:1801368:1422294777:4e7b6b5634e8dccd849194e171c9a342bd1cb8b8
folly/build/generate_escape_tables.py
folly/build/generate_format_tables.py
folly/test/.gitignore