summaryrefslogtreecommitdiffstats
path: root/bin/hostinfo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hostinfo')
-rwxr-xr-xbin/hostinfo4
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):