diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-16 18:38:52 +0200 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-16 18:41:56 +0200 |
commit | 9f6e876e14a074c386660c582c7f78e1503877aa (patch) | |
tree | affbde24ebd185674909fd6f727a20d87155b8ec /bin/hostinfo | |
parent | 18425d3ee02f75f5275b394205abcb5a4ce995bf (diff) | |
download | tools-master.tar.gz tools-master.tar.bz2 tools-master.zip |
Diffstat (limited to 'bin/hostinfo')
-rwxr-xr-x | bin/hostinfo | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hostinfo b/bin/hostinfo index b85ccc8..639102c 100755 --- a/bin/hostinfo +++ b/bin/hostinfo @@ -20,8 +20,8 @@ from hostinfo import utils def _get_data(path): - stream = file(path, 'r') - return yaml.load(stream) + stream = open(path, 'r') + return yaml.safe_load(stream) def _match_key(data, keys): |