src/eric7/Utilities/ModuleParser.py

branch
eric7
changeset 10180
3a595df36c9a
parent 10060
b946699e9e79
child 10216
c07a1ef5c5d3
diff -r c2125fcab4b8 -r 3a595df36c9a src/eric7/Utilities/ModuleParser.py
--- a/src/eric7/Utilities/ModuleParser.py	Thu Aug 31 15:00:53 2023 +0200
+++ b/src/eric7/Utilities/ModuleParser.py	Thu Aug 31 18:10:28 2023 +0200
@@ -1669,20 +1669,20 @@
                     if ext == ".ptl":
                         # Quixote page template
                         return (
-                            open(pathname),  # __IGNORE_WARNING_Y115__
+                            open(pathname),  # noqa: Y115
                             pathname,
                             (".ptl", "r", PTL_SOURCE),
                         )
                     elif ext == ".rb":
                         # Ruby source file
                         return (
-                            open(pathname),  # __IGNORE_WARNING_Y115__
+                            open(pathname),  # noqa: Y115
                             pathname,
                             (".rb", "r", RB_SOURCE),
                         )
                     else:
                         return (
-                            open(pathname),  # __IGNORE_WARNING_Y115__
+                            open(pathname),  # noqa: Y115
                             pathname,
                             (ext, "r", PY_SOURCE),
                         )
@@ -1697,8 +1697,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))
-        # __IGNORE_WARNING_Y115__
+        return (open(spec.origin), spec.origin, (ext, "r", PY_SOURCE))  # noqa: Y115
 
     raise ImportError
 

eric ide

mercurial