switch to python3
This commit is contained in:
parent
e0cf954ad9
commit
f590043e58
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
# This file is in the public domain.
|
# This file is in the public domain.
|
||||||
|
|
||||||
"""Expand Jinja2 templates based on JSON input.
|
"""Expand Jinja2 templates based on JSON input.
|
||||||
@ -26,7 +26,7 @@ class StdinLoader(BaseLoader):
|
|||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
self.path = '-'
|
self.path = '-'
|
||||||
def get_source(self, environment, template):
|
def get_source(self, environment, template):
|
||||||
source = sys.stdin.read().decode('utf-8')
|
source = sys.stdin.read()
|
||||||
return source, self.path, lambda: false
|
return source, self.path, lambda: false
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user