mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-06 00:09:10 -07:00
mssql_script: make module Python 2 compatible (#7821)
Make module Python 2 compatible.
This commit is contained in:
parent
069b485b7e
commit
92f8bf7b6f
2 changed files with 3 additions and 1 deletions
|
@ -283,7 +283,7 @@ def run_module():
|
|||
# Process the script into batches
|
||||
queries = []
|
||||
current_batch = []
|
||||
for statement in script.splitlines(keepends=True):
|
||||
for statement in script.splitlines(True):
|
||||
# Ignore the Byte Order Mark, if found
|
||||
if statement.strip() == '\uFEFF':
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue