textmate/python.tmbundle — pull request #40 by sethrh (2014-05-20 03:02:12+00:00)
Title: Improve Python 3 support (tracebacks are linked again)

- Add Python 3.4 support around issue #27 (in 3.4, removing TM_BUNDLE_SUPPORT causes importlib issues)
- urllib.parse.quote instead of urllib.quote
- don't set encoding on sys.stdout/sys.stderr (already UTF-8)
- use open('w') instead of fdopen('wb') so we can write UTF-8 strings instead of bytes
- safely test unicode-ness, only encode to UTF-8 in Python 2.x