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
Titouan Soulard
erp5
Commits
59c84aeb
Commit
59c84aeb
authored
Feb 19, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/pylint: ignore warnings related to using python2
parent
8c6b5f9e
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 @
59c84aeb
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
from
__future__
import
absolute_import
from
__future__
import
absolute_import
import
sys
import
sys
import
warnings
import
six
from
Products.ERP5Type
import
IS_ZOPE2
from
Products.ERP5Type
import
IS_ZOPE2
# TODO: make sure that trying to use it does not import isort, because the
# TODO: make sure that trying to use it does not import isort, because the
...
@@ -495,12 +497,23 @@ register_xpkg('xlte')
...
@@ -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
# 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__]
# return _CONST_PROXY[const.value.__class__]
# KeyError: <type '
CompiledFFI
'>
# 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
import cryptography.hazmat.bindings._openssl
_register_module_extender_from_live_module(
_register_module_extender_from_live_module(
'
cryptography
.
hazmat
.
bindings
.
_openssl
',
'
cryptography
.
hazmat
.
bindings
.
_openssl
',
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
:
try
:
import
xmlsec
import
xmlsec
except
ImportError
:
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