mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 09:21:24 -07:00
[PR #7821/92f8bf7b backport][stable-8] mssql_script: make module Python 2 compatible (#7866)
mssql_script: make module Python 2 compatible (#7821)
Make module Python 2 compatible.
(cherry picked from commit 92f8bf7b6f
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
82a07de870
commit
d22199f82e
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