Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
44d89468
Commit
44d89468
authored
May 30, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c935733a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+12
-2
No files found.
product/ERP5Type/patches/pylint.py
View file @
44d89468
...
@@ -198,7 +198,7 @@ from astroid.exceptions import NotFoundError
...
@@ -198,7 +198,7 @@ from astroid.exceptions import NotFoundError
from
astroid.scoped_nodes
import
Module
from
astroid.scoped_nodes
import
Module
Module_getattr
=
Module
.
getattr
Module_getattr
=
Module
.
getattr
def
_getattr
(
self
,
name
,
*
args
,
**
kw
):
def
_getattr
(
self
,
name
,
*
args
,
**
kw
):
print
'
CCC
getattr %s %s'
%
(
self
.
name
,
name
)
print
'
EEE
getattr %s %s'
%
(
self
.
name
,
name
)
try
:
try
:
try
:
try
:
return
Module_getattr
(
self
,
name
,
*
args
,
**
kw
)
return
Module_getattr
(
self
,
name
,
*
args
,
**
kw
)
...
@@ -248,7 +248,7 @@ def _getattr(self, name, *args, **kw):
...
@@ -248,7 +248,7 @@ def _getattr(self, name, *args, **kw):
print
'
\
t
getattr %s %s
\
t
-> ok %s'
%
(
self
.
name
,
name
,
ast
)
print
'
\
t
getattr %s %s
\
t
-> ok %s'
%
(
self
.
name
,
name
,
ast
)
return
[
ast
]
return
[
ast
]
except
Exception
,
e
:
except
Exception
,
e
:
print
'
\
t
getattr %s %s
\
t
-> E %
s
'
%
(
self
.
name
,
name
,
e
,)
print
'
\
t
getattr %s %s
\
t
-> E %
r
'
%
(
self
.
name
,
name
,
e
,)
raise
raise
Module
.
getattr
=
_getattr
Module
.
getattr
=
_getattr
...
@@ -333,6 +333,16 @@ for filename in os.listdir(os.path.dirname(lxml.__file__)):
...
@@ -333,6 +333,16 @@ for filename in os.listdir(os.path.dirname(lxml.__file__)):
module_name
,
module_name
,
__import__
(
module_name
,
fromlist
=
[
module_name
],
level
=
0
))
__import__
(
module_name
,
fromlist
=
[
module_name
],
level
=
0
))
# XXX
import
wendelin
def
wendelin_transform
():
return
AstroidBuilder
(
MANAGER
).
string_build
(
'''
__path__ = %s
'''
%
wendelin
.
__path__
)
#_register_module_extender_from_live_module('wendelin', wendelin)
register_module_extender
(
MANAGER
,
'wendelin'
,
wendelin_transform
)
# Properly search for namespace packages: original astroid (as of 1.3.8) only
# Properly search for namespace packages: original astroid (as of 1.3.8) only
# checks at top-level and it doesn't work for Shared.DC.ZRDB (defined in
# checks at top-level and it doesn't work for Shared.DC.ZRDB (defined in
# Products.ZSQLMethods; Shared and Shared.DC being a namespace package defined
# Products.ZSQLMethods; Shared and Shared.DC being a namespace package defined
...
...
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