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
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
fa1e369e
Commit
fa1e369e
authored
Feb 19, 2024
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/pylint: ignore warnings related to using python2
parent
4f1d20e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Type/patches/pylint.py
product/ERP5Type/patches/pylint.py
+13
-0
No files found.
product/ERP5Type/patches/pylint.py
View file @
fa1e369e
...
...
@@ -20,6 +20,8 @@
from
__future__
import
absolute_import
import
sys
import
warnings
import
six
from
Products.ERP5Type
import
IS_ZOPE2
# TODO: make sure that trying to use it does not import isort, because the
...
...
@@ -495,12 +497,23 @@ register_xpkg('xlte')
# File "develop-eggs/astroid-1.3.8+slapospatched001-py2.7.egg/astroid/raw_building.py", line 360, in _set_proxied
# return _CONST_PROXY[const.value.__class__]
# KeyError: <type '
CompiledFFI
'>
if six.PY2:
warnings.filterwarnings(
'
ignore
',
message='
Python
2
is
no
longer
supported
by
the
Python
core
team
.
'
'
Support
for
it
is
now
deprecated
in
cryptography
.
*
')
import cryptography.hazmat.bindings._openssl
_register_module_extender_from_live_module(
'
cryptography
.
hazmat
.
bindings
.
_openssl
',
cryptography.hazmat.bindings._openssl)
if six.PY2:
# xmlsec has a module with .pyi files which python2 does not understand
warnings.filterwarnings(
'
ignore
',
category=ImportWarning,
message='
Not
importing
directory
.
*/
xmlsec
\
': missing __init__.py'
)
try
:
import
xmlsec
except
ImportError
:
...
...
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