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
139
Merge Requests
139
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
601a733a
Commit
601a733a
authored
Mar 10, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py3: follow changes on astroid.
parent
8237ab6e
Pipeline
#33354
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
product/ERP5Type/Tool/ComponentTool.py
product/ERP5Type/Tool/ComponentTool.py
+2
-1
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+2
-1
product/ERP5Type/tests/testDynamicClassGeneration.py
product/ERP5Type/tests/testDynamicClassGeneration.py
+4
-2
No files found.
product/ERP5Type/Tool/ComponentTool.py
View file @
601a733a
...
...
@@ -161,7 +161,8 @@ class ComponentTool(BaseTool):
# Clear pylint cache
try
:
from
astroid.builder
import
MANAGER
from
astroid.builder
import
AstroidManager
MANAGER
=
AstroidManager
()
except
ImportError
:
pass
else
:
...
...
product/ERP5Type/patches/pylint.py
View file @
601a733a
...
...
@@ -42,7 +42,8 @@ OptionsManagerMixIn.read_config_file = lambda *args, **kw: None
## Pylint transforms and plugin to generate AST for ZODB Components
from
astroid.builder
import
AstroidBuilder
from
astroid.exceptions
import
AstroidBuildingException
from
astroid
import
MANAGER
,
node_classes
from
astroid
import
AstroidManager
,
node_classes
MANAGER
=
AstroidManager
()
try
:
from
astroid.builder
import
_guess_encoding
...
...
product/ERP5Type/tests/testDynamicClassGeneration.py
View file @
601a733a
...
...
@@ -2217,7 +2217,8 @@ def function_foo(*args, **kwargs):
def
_assertAstroidCacheContent
(
self
,
must_be_in_cache_set
,
must_not_be_in_cache_set
):
from
astroid.builder
import
MANAGER
from
astroid.builder
import
AstroidManager
MANAGER
=
AstroidManager
()
should_not_be_in_cache_list
=
[]
for
modname
in
MANAGER
.
astroid_cache
:
if
(
modname
.
startswith
(
'checkPythonSourceCode'
)
or
...
...
@@ -2490,7 +2491,8 @@ from %(namespace)s.erp5_version import %(reference)s
reference
=
imported_reference
))
component
.
checkSourceCode
()
from
astroid.builder
import
MANAGER
from
astroid.builder
import
AstroidManager
MANAGER
=
AstroidManager
()
imported_module
=
self
.
_getComponentFullModuleName
(
imported_reference
)
self
.
assertEqual
(
MANAGER
.
astroid_cache
[
self
.
_getComponentFullModuleName
(
imported_reference
,
version
=
'bar'
)],
...
...
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