Title: fix: redirect to stderr for xauthority-related errors by R1kaB3rN · Pull Request #285 · python-xlib/python-xlib · GitHub
Open Graph Title: fix: redirect to stderr for xauthority-related errors by R1kaB3rN · Pull Request #285 · python-xlib/python-xlib
X Title: fix: redirect to stderr for xauthority-related errors by R1kaB3rN · Pull Request #285 · python-xlib/python-xlib
Description: Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter is not only questionable and poor practice for logging error messages, but problematic for applications that read and depend on data from stdout in the event that an xauthority-related error occurs. As an improvement and simple fix, redirect the error message to stderr instead of stdout when invoking print.
Open Graph Description: Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter ...
X Description: Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter ...
Opengraph URL: https://github.com/python-xlib/python-xlib/pull/285
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6c011970-0269-672f-859c-f39a53ff916a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DB72:3671DE:916A75:C85EB6:696A8201 |
| html-safe-nonce | 1203e773737b33f30dc1f0aeff34c7ae78939aed4a9b3f2c49285ff507c37991 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjcyOjM2NzFERTo5MTZBNzU6Qzg1RUI2OjY5NkE4MjAxIiwidmlzaXRvcl9pZCI6IjMyMDk2NjAwNDU5NjM0NjExMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 428b9a7c7e5eeb14c48cc8b38ca9634035f57a13043b9bf4740139e2b190b885 |
| hovercard-subject-tag | pull_request:3015666408 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python-xlib/python-xlib/pull/285/checks |
| twitter:image | https://avatars.githubusercontent.com/u/100738684?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/100738684?s=400&v=4 |
| og:image:alt | Throughout this codebase, the print function is being invoked for debugging purposes both within the examples directory and the python module itself. The print function being present in the latter ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-xlib/python-xlib git https://github.com/python-xlib/python-xlib.git |
| octolytics-dimension-user_id | 16151530 |
| octolytics-dimension-user_login | python-xlib |
| octolytics-dimension-repository_id | 47391866 |
| octolytics-dimension-repository_nwo | python-xlib/python-xlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47391866 |
| octolytics-dimension-repository_network_root_nwo | python-xlib/python-xlib |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width