diff options
author | Oldřich Jedlička <oldium@users.noreply.github.com> | 2021-01-19 18:20:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 18:20:26 +0100 |
commit | ec55a221f6f4531d8da0c496c994b0d586b3f68b (patch) | |
tree | 6a7bda6fd4c1369c4a9c54d6281793de3e12b33c /changelogs | |
parent | Fix YAML error message when error is at the end of the file (#73241) (diff) | |
download | ansible-ec55a221f6f4531d8da0c496c994b0d586b3f68b.tar.xz ansible-ec55a221f6f4531d8da0c496c994b0d586b3f68b.zip |
Do not pretend expression is filename in compile() Python built-in call (#73113)
When calling compile(), the filename argument should be either a real file
name or a string. According to Python docs, suggested one is '<string>'.
Keep the current behaviour (encapsulate the actual expression),
but enclose it into angle brackets.
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/fix_expression_as_filename_in_compile.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/fragments/fix_expression_as_filename_in_compile.yaml b/changelogs/fragments/fix_expression_as_filename_in_compile.yaml new file mode 100644 index 0000000000..0ddfa0ac72 --- /dev/null +++ b/changelogs/fragments/fix_expression_as_filename_in_compile.yaml @@ -0,0 +1,4 @@ +bugfixes: + - Pass expression in angle-bracket notation as filename argument to a + ``compile()`` built-in function, so that Python debuggers do not try to + parse it as filename. |