hylang/hy — pull request #299 by berkerpeksag (2013-09-24 07:45:46+00:00)
Title: Add hy._compat module.

There was a couple of duplicate imports and type checkings in the
codebase. So I added a new module to unify all Python 2 and 3
compatibility codes.

Also, this is a somewhat common pattern in Python. See Jinja2 for
example:

https://github.com/mitsuhiko/jinja2/blob/master/jinja2/_compat.py