summaryrefslogtreecommitdiff
path: root/prettyml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-03-17 11:05:11 +0200
committerLars Wirzenius <liw@liw.fi>2018-03-17 11:39:56 +0200
commitc964fa3e4312b83cd20b6d47fabcee290a1ab1c7 (patch)
tree4082482c9664068ba0b8e9e948c8df546cc18dab /prettyml
parent5eea744d11fd391e0cea5bfe39b145c0b7998e5d (diff)
downloadextrautils-c964fa3e4312b83cd20b6d47fabcee290a1ab1c7.tar.gz
Change: prettyml to use Python3
Diffstat (limited to 'prettyml')
-rwxr-xr-xprettyml3
1 files changed, 2 insertions, 1 deletions
diff --git a/prettyml b/prettyml
index f4fbb5e..fac3ebb 100755
--- a/prettyml
+++ b/prettyml
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
import sys
@@ -12,6 +12,7 @@ def inputs(args):
else:
yield '-', sys.stdin
+
objs = []
for filename, f in inputs(sys.argv[1:]):
objs.append(yaml.safe_load(f))