src/eric7/Utilities/ClassBrowsers/__init__.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
--- a/src/eric7/Utilities/ClassBrowsers/__init__.py	Mon Feb 24 15:11:18 2025 +0100
+++ b/src/eric7/Utilities/ClassBrowsers/__init__.py	Mon Feb 24 15:43:49 2025 +0100
@@ -227,7 +227,7 @@
         for p in path:  # search in path
             pathname = os.path.join(p, name)
             if os.path.exists(pathname):
-                return (open(pathname), pathname, (ext, "r", sourceType))  # noqa: Y115
+                return (open(pathname), pathname, (ext, "r", sourceType))  # noqa: Y-115
         raise ImportError
     else:
         # standard Python module file
@@ -239,7 +239,8 @@
             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
 

eric ide

mercurial