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
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
6938bc05
Commit
6938bc05
authored
Jun 23, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint: Fix typos.
parent
cb0684df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+5
-5
No files found.
product/ERP5Type/patches/pylint.py
View file @
6938bc05
...
@@ -125,17 +125,17 @@ def _buildAstroidModuleFromComponentModuleName(modname):
...
@@ -125,17 +125,17 @@ def _buildAstroidModuleFromComponentModuleName(modname):
obj
=
getattr
(
component_tool
,
obj
=
getattr
(
component_tool
,
component_id
.
replace
(
'_version'
,
''
,
1
))
component_id
.
replace
(
'_version'
,
''
,
1
))
except
AttributeError
:
except
AttributeError
:
raise
AstroidBuildingException
raise
AstroidBuildingException
()
if
obj
.
getValidationState
()
in
(
'modified'
,
'validated'
):
if
obj
.
getValidationState
()
in
(
'modified'
,
'validated'
):
component_obj
=
obj
component_obj
=
obj
else
:
else
:
raise
AstroidBuildingException
raise
AstroidBuildingException
()
else
:
else
:
try
:
try
:
package
,
reference
=
component_id
.
split
(
'.'
,
1
)
package
,
reference
=
component_id
.
split
(
'.'
,
1
)
except
ValueError
:
except
ValueError
:
raise
AstroidBuildingException
raise
AstroidBuildingException
()
for
version
in
portal
.
getVersionPriorityNameList
():
for
version
in
portal
.
getVersionPriorityNameList
():
try
:
try
:
obj
=
getattr
(
component_tool
,
obj
=
getattr
(
component_tool
,
...
@@ -154,7 +154,7 @@ def _buildAstroidModuleFromComponentModuleName(modname):
...
@@ -154,7 +154,7 @@ def _buildAstroidModuleFromComponentModuleName(modname):
return
module
return
module
if
component_obj
is
None
:
if
component_obj
is
None
:
raise
AstroidBuildingException
raise
AstroidBuildingException
()
# module_build() could also be used but this requires importing
# module_build() could also be used but this requires importing
# the ZODB Component and also monkey-patch it to support PEP-302
# the ZODB Component and also monkey-patch it to support PEP-302
...
@@ -166,7 +166,7 @@ def _buildAstroidModuleFromComponentModuleName(modname):
...
@@ -166,7 +166,7 @@ def _buildAstroidModuleFromComponentModuleName(modname):
def
fail_hook_erp5_component
(
modname
):
def
fail_hook_erp5_component
(
modname
):
if
not
modname
.
startswith
(
'erp5.'
):
if
not
modname
.
startswith
(
'erp5.'
):
raise
AstroidBuildingException
raise
AstroidBuildingException
()
if
(
modname
in
(
'erp5.portal_type'
,
if
(
modname
in
(
'erp5.portal_type'
,
'erp5.component'
,
'erp5.component'
,
...
...
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