Title: newlines at the end of source and target filenames · Issue #2 · techtonik/python-patch · GitHub
Open Graph Title: newlines at the end of source and target filenames · Issue #2 · techtonik/python-patch
X Title: newlines at the end of source and target filenames · Issue #2 · techtonik/python-patch
Description: What steps will reproduce the problem? 1. test.py file as follows: import patch patch.apply_patch(patch.read_patch('my.patch')) 2. Run script with "C:\python26\python.exe test.py" What is the expected output? What do you see instead? Exp...
Open Graph Description: What steps will reproduce the problem? 1. test.py file as follows: import patch patch.apply_patch(patch.read_patch('my.patch')) 2. Run script with "C:\python26\python.exe test.py" What is the expec...
X Description: What steps will reproduce the problem? 1. test.py file as follows: import patch patch.apply_patch(patch.read_patch('my.patch')) 2. Run script with "C:\python26\python.exe test.py"...
Opengraph URL: https://github.com/techtonik/python-patch/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"newlines at the end of source and target filenames","articleBody":"```\nWhat steps will reproduce the problem?\n1. test.py file as follows:\n\nimport patch\npatch.apply_patch(patch.read_patch('my.patch'))\n\n2. Run script with \"C:\\python26\\python.exe test.py\"\n\nWhat is the expected output? What do you see instead?\n\nExpected: \n\nWARNING:root:successfully patched htdocs/index.php\n\nReceived:\n\nWARNING:root:source/target file does not exist\n--- htdocs/index.php\n\n+++ htdocs/index.php\n\n\nWhat version of the product are you using? On what operating system?\nUsing patch-8.06-2, Python 2.6.2, Win XP SP3.\n\n\nFix seems to be simple, change line 133 from:\n\n files[\"source\"].append(match.group(1))\n\nto:\n\n files[\"source\"].append(match.group(1).strip())\n\nNot sure why this hasn't affected anyone before now.\n```\n\nOriginal issue reported on code.google.com by `ja...@twistedfish.com` on 14 May 2009 at 4:31\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-04-18T09:05:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2/python-patch/issues/2"}
| 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:637ad705-33d1-437f-2f30-59be57d2174a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9898:1B1D69:468D51:623BA1:696A6B57 |
| html-safe-nonce | da92fe4aeb8214218b0f80390c71fe71899def932a58158de58ffe10d656af09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODk4OjFCMUQ2OTo0NjhENTE6NjIzQkExOjY5NkE2QjU3IiwidmlzaXRvcl9pZCI6IjgxNDk3OTE4NTU3MTc1NDI3NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c3e121551fd09573ea180fa58d48d1b2586bd98d6ccde8f6960f930ebe4f74b4 |
| hovercard-subject-tag | issue:69288644 |
| 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/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/541a48015283722138a88fe0e5f53ae6c1e52f8bc364b667f5fabab25737f520/techtonik/python-patch/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/541a48015283722138a88fe0e5f53ae6c1e52f8bc364b667f5fabab25737f520/techtonik/python-patch/issues/2 |
| og:image:alt | What steps will reproduce the problem? 1. test.py file as follows: import patch patch.apply_patch(patch.read_patch('my.patch')) 2. Run script with "C:\python26\python.exe test.py" What is the expec... |
| 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 | 6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6 |
| 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 | f2d9f6432a5a115ec709295ae70623f33bb80aee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width