Title: "Show source" on empty line throws exception · Issue #642 · bpython/bpython · GitHub
Open Graph Title: "Show source" on empty line throws exception · Issue #642 · bpython/bpython
X Title: "Show source" on empty line throws exception · Issue #642 · bpython/bpython
Description: bpython version 0.16 on top of Python 2.7.12+ /tmp/_env/bin/python2 >>> Traceback (most recent call last): File "/tmp/_env/bin/bpython", line 11, in
Open Graph Description: bpython version 0.16 on top of Python 2.7.12+ /tmp/_env/bin/python2 >>> Traceback (most recent call last): File "/tmp/_env/bin/bpython", line 11, in
X Description: bpython version 0.16 on top of Python 2.7.12+ /tmp/_env/bin/python2 >>> Traceback (most recent call last): File "/tmp/_env/bin/bpython", line 11, in <module> sys.exit(main(...
Opengraph URL: https://github.com/bpython/bpython/issues/642
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Show source\" on empty line throws exception","articleBody":"```\nbpython version 0.16 on top of Python 2.7.12+ /tmp/_env/bin/python2\n\u003e\u003e\u003e \nTraceback (most recent call last):\n File \"/tmp/_env/bin/bpython\", line 11, in \u003cmodule\u003e\n sys.exit(main())\n File \"/tmp/_env/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 190, in main\n exit_value = repl.mainloop()\n File \"/tmp/_env/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 125, in mainloop\n self.process_event_and_paint(e)\n File \"/tmp/_env/local/lib/python2.7/site-packages/bpython/curtsies.py\", line 99, in process_event_and_paint\n array, cursor_pos = self.paint()\n File \"/tmp/_env/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 1468, in paint\n 1, width, self.status_bar.current_line, self.config)\n File \"/tmp/_env/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/replpainter.py\", line 227, in paint_statusbar\n return fsarray([func(msg.ljust(columns))[:columns]])\n File \"/tmp/_env/local/lib/python2.7/site-packages/curtsies/formatstring.py\", line 628, in fmtstr\n string = FmtStr.from_str(string)\n File \"/tmp/_env/local/lib/python2.7/site-packages/curtsies/formatstring.py\", line 180, in from_str\n return FmtStr(Chunk(s))\n File \"/tmp/_env/local/lib/python2.7/site-packages/curtsies/formatstring.py\", line 70, in __init__\n raise ValueError(\"unicode string required, got %r\" % string)\nValueError: unicode string required, got 'Nothing to get source of\n '\n```\n\nSeems like a Python 2 issue only, not reproducible under Python 3.\n","author":{"url":"https://github.com/Trundle","@type":"Person","name":"Trundle"},"datePublished":"2016-10-10T21:29:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/642/bpython/issues/642"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dd88adb7-f700-9238-a516-dd9d513698b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2C2:12343F:2954D4C:3666F82:696B2410 |
| html-safe-nonce | ff483e5401b97b1f05332dca8f65d29099c523756fa1967e57ac9b3abdb1d43e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkMyOjEyMzQzRjoyOTU0RDRDOjM2NjZGODI6Njk2QjI0MTAiLCJ2aXNpdG9yX2lkIjoiMTA3Mzg2Njg2ODE4NDI3OTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bb3859d4ee8e55639c4b4ab3e81d7146df99a75c91ea7a94f007ebdb8e8b71ac |
| hovercard-subject-tag | issue:182120034 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/642/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c406f7a84ef40496e8de75811bc47a3645c2de992d7c5e598377441c6d216a6a/bpython/bpython/issues/642 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c406f7a84ef40496e8de75811bc47a3645c2de992d7c5e598377441c6d216a6a/bpython/bpython/issues/642 |
| og:image:alt | bpython version 0.16 on top of Python 2.7.12+ /tmp/_env/bin/python2 >>> Traceback (most recent call last): File "/tmp/_env/bin/bpython", line 11, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Trundle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width