Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

pass the specific YAML loader to yaml.load #648

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

alexander-fenster
Copy link
Contributor

Following the advice from this page to prevent the deprecation messages like this one:

/artman/artman/config/loader.py:99: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  json_string = json.dumps(yaml.load(f))
/artman/artman/config/loader.py:126: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  artman_config_json_string = json.dumps(yaml.load(f))

Following the advice from [this page](https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation) to prevent the deprecation messages like this one:

```
/artman/artman/config/loader.py:99: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  json_string = json.dumps(yaml.load(f))
/artman/artman/config/loader.py:126: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  artman_config_json_string = json.dumps(yaml.load(f))
```
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 20, 2019
@alexander-fenster
Copy link
Contributor Author

alexander-fenster commented Jun 26, 2019

@lukesneeringer @eoogbe @vam-google Can you please review this one line* change?


* two lines actually

Copy link
Contributor

@vam-google vam-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexander-fenster alexander-fenster merged commit 8d57a50 into master Jun 26, 2019
@alexander-fenster alexander-fenster deleted the yaml-load-deprecation branch June 26, 2019 19:21
alexander-fenster added a commit that referenced this pull request Jun 26, 2019
Changes included in this release are fixes:

In artman:

- pass the specific YAML loader to yaml.load #648 
- fix --local runs #650

In gapic-generator:

- samplegen: add sample_config.proto to the config_java_proto BUILD target googleapis/gapic-generator#2852
- go: URL encode x-goog-request-params googleapis/gapic-generator#2851
- ruby: ake it possible to pass metadata to the operations client googleapis/gapic-generator#2856
@alexander-fenster alexander-fenster mentioned this pull request Jun 26, 2019
alexander-fenster added a commit that referenced this pull request Jun 26, 2019
Changes included in this release are fixes:

In artman:

- pass the specific YAML loader to yaml.load #648 
- fix --local runs #650

In gapic-generator:

- samplegen: add sample_config.proto to the config_java_proto BUILD target googleapis/gapic-generator#2852
- go: URL encode x-goog-request-params googleapis/gapic-generator#2851
- ruby: ake it possible to pass metadata to the operations client googleapis/gapic-generator#2856
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants