Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
f563b224
Commit
f563b224
authored
Sep 22, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12461 from mgedmin/py3k
Python 3: there's no basestring
parents
d2949f54
fc0dcc39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/parsing/__init__.py
+2
-2
No files found.
lib/ansible/parsing/__init__.py
View file @
f563b224
...
@@ -25,7 +25,7 @@ import os
...
@@ -25,7 +25,7 @@ import os
import
stat
import
stat
from
yaml
import
load
,
YAMLError
from
yaml
import
load
,
YAMLError
from
six
import
text_type
from
six
import
text_type
,
string_types
from
ansible.errors
import
AnsibleParserError
from
ansible.errors
import
AnsibleParserError
from
ansible.errors.yaml_strings
import
YAML_SYNTAX_ERROR
from
ansible.errors.yaml_strings
import
YAML_SYNTAX_ERROR
...
@@ -154,7 +154,7 @@ class DataLoader():
...
@@ -154,7 +154,7 @@ class DataLoader():
Reads the file contents from the given file name, and will decrypt them
Reads the file contents from the given file name, and will decrypt them
if they are found to be vault-encrypted.
if they are found to be vault-encrypted.
'''
'''
if
not
file_name
or
not
isinstance
(
file_name
,
basestring
):
if
not
file_name
or
not
isinstance
(
file_name
,
string_types
):
raise
AnsibleParserError
(
"Invalid filename: '
%
s'"
%
str
(
file_name
))
raise
AnsibleParserError
(
"Invalid filename: '
%
s'"
%
str
(
file_name
))
if
not
self
.
path_exists
(
file_name
)
or
not
self
.
is_file
(
file_name
):
if
not
self
.
path_exists
(
file_name
)
or
not
self
.
is_file
(
file_name
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment