Title: Update yaml.load() to avoid warning · Pull Request #1041 · realpython/python-guide · GitHub
Open Graph Title: Update yaml.load() to avoid warning · Pull Request #1041 · realpython/python-guide
X Title: Update yaml.load() to avoid warning · Pull Request #1041 · realpython/python-guide
Description: The yaml.load() function call throws the following warning when Loader isn't specified:
"YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details."
The updated default loader avoids arbitrary code execution after issuing a warning, however the warning can be avoided with yaml.load(input, Loader=) or yaml.
Open Graph Description: The yaml.load() function call throws the following warning when Loader isn't specified: "YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is uns...
X Description: The yaml.load() function call throws the following warning when Loader isn't specified: "YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loade...
Opengraph URL: https://github.com/realpython/python-guide/pull/1041
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:38448474-7493-8445-f46d-4b4cbd9dd069 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C1C0:DB76B:9ADF52:CBC9F0:69716C02 |
| html-safe-nonce | e7fd8221e4b32206db05626410095f009cc2bf212027397d556384ad303f4c89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUMwOkRCNzZCOjlBREY1MjpDQkM5RjA6Njk3MTZDMDIiLCJ2aXNpdG9yX2lkIjoiNTM1MjQ1OTg5NDY4ODY3Mjc3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 98f10593baa8fb311326c5a1dd70226e60cc88336ec09369c0b6aefb8e0e9373 |
| hovercard-subject-tag | pull_request:377899570 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/realpython/python-guide/pull/1041/files |
| twitter:image | https://avatars.githubusercontent.com/u/10137?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10137?s=400&v=4 |
| og:image:alt | The yaml.load() function call throws the following warning when Loader isn't specified: "YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is uns... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/realpython/python-guide git https://github.com/realpython/python-guide.git |
| octolytics-dimension-user_id | 5448020 |
| octolytics-dimension-user_login | realpython |
| octolytics-dimension-repository_id | 1481305 |
| octolytics-dimension-repository_nwo | realpython/python-guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1481305 |
| octolytics-dimension-repository_network_root_nwo | realpython/python-guide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4c7e274c03a115b82dcef6c47ce3f7f903e88e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width