Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
141
Merge Requests
141
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0b52191c
Commit
0b52191c
authored
Apr 11, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/pylint: adjust Module._getattr patch for py3
( I'm wondering if we need this patch at all on py3 )
parent
0cbd45dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+8
-1
No files found.
product/ERP5Type/patches/pylint.py
View file @
0b52191c
...
@@ -248,7 +248,14 @@ def _getattr(self, name, *args, **kw):
...
@@ -248,7 +248,14 @@ def _getattr(self, name, *args, **kw):
except
NotFoundError
as
e
:
except
NotFoundError
as
e
:
if
self
.
name
.
startswith
(
'erp5.'
):
if
self
.
name
.
startswith
(
'erp5.'
):
raise
raise
if
six
.
PY3
and
self
.
name
==
'numpy'
or
self
.
name
.
startswith
(
'numpy.'
):
if
six
.
PY3
and
(
# astroid/pylint on py3 have built-in support for numpy
self
.
name
==
'numpy'
or
self
.
name
.
startswith
(
'numpy.'
)
# SOAPPy.Types contains "from SOAPPy.Types import *" which confuses
# this patch
or
self
.
name
==
'SOAPpy.Types'
):
raise
raise
real_module
=
__import__
(
real_module
=
__import__
(
self
.
name
,
self
.
name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment