--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py Fri Nov 11 17:14:21 2022 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/yamlCheckSyntax.py Fri Nov 11 17:49:06 2022 +0100 @@ -31,23 +31,6 @@ return yamlSyntaxBatchCheck -def normalizeCode(codestring): - """ - Function to normalize the given code. - - @param codestring code to be normalized - @type str - @return normalized code - @rtype str - """ - codestring = codestring.replace("\r\n", "\n").replace("\r", "\n") - - if codestring and codestring[-1] != "\n": - codestring += "\n" - - return codestring - - def yamlSyntaxCheck(file, codestring): """ Function to check a YAML source file for syntax errors. @@ -180,8 +163,6 @@ error = "pyyaml not available. Install it via the PyPI interface." return [{"error": (file, 0, 0, "", error)}] - codestring = normalizeCode(codestring) - try: for _obj in safe_load_all(codestring): # do nothing with it, just to get parse errors