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
138
Merge Requests
138
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
e16617ac
Commit
e16617ac
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
d5dcf44e
Changes
1
Hide 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 @
e16617ac
...
...
@@ -248,7 +248,14 @@ def _getattr(self, name, *args, **kw):
except
NotFoundError
as
e
:
if
self
.
name
.
startswith
(
'erp5.'
):
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
real_module
=
__import__
(
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