{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1641","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1641/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1641/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1641/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1641","id":53302096,"number":1641,"title":"Document parser breaks quietly with ParseError(\"bad input on print() (from __future__ import print_function)","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/autodoc","name":"autodoc","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/prio%3Alow","name":"prio:low","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-03T11:47:48Z","updated_at":"2015-01-03T11:47:50Z","closed_at":null,"body":"See Also #1547 #1547\n\n```python\n            import dotfiles\n            version = dotfiles.version\n            print(version, file=stdout)  # 3486\n            return 0\n```\n\n```\n[autodoc] module analyzer failed: parsing failed (exception was:\n... ParseError(\"bad input: type=22, value=u'=', context=('', (3486, 31))\",))\n```\n* https://github.com/westurner/dotfiles/blob/33cf7f6c4/src/dotfiles/venv/ipython_config.py#L3486\n* https://github.com/westurner/dotfiles/blob/33cf7f6c4/docs/conf.py\n* https://github.com/westurner/dotfiles/blob/33cf7f6c4/Makefile\n* https://github.com/westurner/dotfiles/blob/33cf7f6c4/docs/Makefile\n* Makefile (``make docs`` -> ``make -C docs html``) \n\nWith Python 2.7.8, sphinx 1.3b1\n\n[EDIT]\n\n**WORKAROUND**\n\nRedefine print at the top of the file\n\n```python \n if sys.version_info[0] == 2:\n    def print(*args, **kwargs):\n        print(*args, **kwargs)\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1641\n- Originally reported by: Wes Turner\n- Originally created at: 2014-12-03T16:43:26.165\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68592418","html_url":"https://github.com/sphinx-doc/testing2/issues/1641#issuecomment-68592418","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1641","id":68592418,"user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T11:47:50Z","updated_at":"2015-01-03T11:47:50Z","body":"_From Wes Turner on 2014-12-16 02:33:52+00:00_\n\nI suppose it is just a warning, but the performance hit does seem to exist whether or not the verbosity level is increased."}}