--- a/src/eric7/Utilities/ModuleParser.py Mon Feb 24 15:11:18 2025 +0100 +++ b/src/eric7/Utilities/ModuleParser.py Mon Feb 24 15:43:49 2025 +0100 @@ -584,7 +584,7 @@ @param src the source text to be scanned @type str - """ # __IGNORE_WARNING_D234__ + """ # __IGNORE_WARNING_D-234__ def calculateEndline(lineno, lines, indent): """ @@ -1743,7 +1743,7 @@ moduleType = PTL_SOURCE elif extension == ".rb": moduleType = RB_SOURCE - elif extension in _extensions: # noqa: Y106 + elif extension in _extensions: # noqa: Y-106 moduleType = PY_SOURCE else: raise ImportError @@ -1835,20 +1835,20 @@ if ext == ".ptl": # Quixote page template return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (".ptl", "r", PTL_SOURCE), ) elif ext == ".rb": # Ruby source file return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (".rb", "r", RB_SOURCE), ) else: return ( - open(pathname), # noqa: Y115 + open(pathname), # noqa: Y-115 pathname, (ext, "r", PY_SOURCE), ) @@ -1863,7 +1863,7 @@ raise ImportError if isinstance(spec.loader, importlib.machinery.SourceFileLoader): ext = os.path.splitext(spec.origin)[-1] - return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) # noqa: Y115 + return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE)) # noqa: Y-115 raise ImportError