mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-23 00:11:48 -05:00
Misc Python 3 changes: execfile(), file(), reduce(), StandardError
This commit is contained in:
@@ -44,7 +44,7 @@ def could_be_playbook(project_path, dir_path, filename):
|
||||
# show up.
|
||||
matched = False
|
||||
try:
|
||||
for n, line in enumerate(file(playbook_path)):
|
||||
for n, line in enumerate(open(playbook_path)):
|
||||
if valid_playbook_re.match(line):
|
||||
matched = True
|
||||
# Any YAML file can also be encrypted with vault;
|
||||
|
||||
@@ -18,6 +18,7 @@ import contextlib
|
||||
import tempfile
|
||||
import six
|
||||
import psutil
|
||||
from functools import reduce
|
||||
from StringIO import StringIO
|
||||
|
||||
from decimal import Decimal
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import re
|
||||
from functools import reduce
|
||||
from pyparsing import (
|
||||
infixNotation,
|
||||
opAssoc,
|
||||
|
||||
Reference in New Issue
Block a user