Title: Patch: move imports inside __main__ test · Issue #11 · techtonik/python-patch · GitHub
Open Graph Title: Patch: move imports inside __main__ test · Issue #11 · techtonik/python-patch
X Title: Patch: move imports inside __main__ test · Issue #11 · techtonik/python-patch
Description: Just as a minor cleanup issue, I also have a patch (attached) to move the imports which are only used when running as an application inside the __main__ test so they don't get imported if you're just using it as a library. Not a major is...
Open Graph Description: Just as a minor cleanup issue, I also have a patch (attached) to move the imports which are only used when running as an application inside the __main__ test so they don't get imported if you're ju...
X Description: Just as a minor cleanup issue, I also have a patch (attached) to move the imports which are only used when running as an application inside the __main__ test so they don't get imported if you...
Opengraph URL: https://github.com/techtonik/python-patch/issues/11
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Patch: move imports inside __main__ test","articleBody":"```\nJust as a minor cleanup issue, I also have a patch (attached) to move the \nimports which are only used when running as an application inside the __main__ \ntest so they don't get imported if you're just using it as a library.\n\nNot a major issue, but no reason to load them if they're not going to be used..\n```\n\nOriginal issue reported on code.google.com by `foogod@gmail.com` on 28 Aug 2010 at 2:23\n\nAttachments:\n- [python-patch-imports.patch](https://storage.googleapis.com/google-code-attachments/python-patch/issue-11/comment-0/python-patch-imports.patch)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-04-18T09:05:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/11/python-patch/issues/11"}
| 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:7599ed07-d86f-0efb-6d7e-b978b44139d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8352:338071:1213454:1912351:696A90AF |
| html-safe-nonce | 5d710753cf3bb8e6f727eaebc58f4886581cf40308a52791efd0d3fe96a81e2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzUyOjMzODA3MToxMjEzNDU0OjE5MTIzNTE6Njk2QTkwQUYiLCJ2aXNpdG9yX2lkIjoiNDYwODI3ODY3NjYxMTE3NDU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a2bc828a1eda9fe2e18a38f977ad4601aba03bd1192f6a573e5e6ce9e8488b49 |
| hovercard-subject-tag | issue:69288658 |
| 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/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06a9d3aaa2d707c5b46091dedb3747a3a110b01d072c57bb69e5914aa4186d53/techtonik/python-patch/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06a9d3aaa2d707c5b46091dedb3747a3a110b01d072c57bb69e5914aa4186d53/techtonik/python-patch/issues/11 |
| og:image:alt | Just as a minor cleanup issue, I also have a patch (attached) to move the imports which are only used when running as an application inside the __main__ test so they don't get imported if you're ju... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width