Title: fromfile leaks file pointer in case parse raises exception · Issue #58 · techtonik/python-patch · GitHub
Open Graph Title: fromfile leaks file pointer in case parse raises exception · Issue #58 · techtonik/python-patch
X Title: fromfile leaks file pointer in case parse raises exception · Issue #58 · techtonik/python-patch
Description: the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed.
Open Graph Description: the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed.
X Description: the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed.
Opengraph URL: https://github.com/techtonik/python-patch/issues/58
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fromfile leaks file pointer in case parse raises exception","articleBody":"the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed.\r\n","author":{"url":"https://github.com/stefanoborini","@type":"Person","name":"stefanoborini"},"datePublished":"2019-01-14T14:20:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/58/python-patch/issues/58"}
| 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:9316032e-180d-3351-339b-55f4462ae606 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C014:35E3DA:609D754:833DB00:696E3BE7 |
| html-safe-nonce | 65bcf9ca9248bf3e79f4d4276e8f45cf3c7eec8e58f3289b5aa42c2436b65cf8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDE0OjM1RTNEQTo2MDlENzU0OjgzM0RCMDA6Njk2RTNCRTciLCJ2aXNpdG9yX2lkIjoiNDc1MDE2NDM5NDQwODU1NzU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a3a68b5cb7e201e86a773090fb9d4e452f7899ed16fca7f97259e9e31971f4d |
| hovercard-subject-tag | issue:398908896 |
| 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/techtonik/python-patch/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2a502f4fa2188dfeb72b62dca0933e6f732e1f44d085ec97eafd5d5d630b23b/techtonik/python-patch/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2a502f4fa2188dfeb72b62dca0933e6f732e1f44d085ec97eafd5d5d630b23b/techtonik/python-patch/issues/58 |
| og:image:alt | the opening of the patch file needs a context manager, otherwise if patchset.parse raises an exception, the fp is never closed. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefanoborini |
| hostname | github.com |
| expected-hostname | github.com |
| None | b39958d54b39d52b9fc890ff25687d2383a83e003512d4480499b2dbd046839f |
| turbo-cache-control | no-preview |
| go-import | github.com/techtonik/python-patch git https://github.com/techtonik/python-patch.git |
| octolytics-dimension-user_id | 515889 |
| octolytics-dimension-user_login | techtonik |
| octolytics-dimension-repository_id | 34159484 |
| octolytics-dimension-repository_nwo | techtonik/python-patch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34159484 |
| octolytics-dimension-repository_network_root_nwo | techtonik/python-patch |
| 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 | fba10be4ea34590240b2f4a625fc807362c2d5b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width