Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jérome Perrin
erp5
Commits
fa1e369e
Commit
fa1e369e
authored
1 year ago
by
Jérome Perrin
Committed by
Kazuhiko Shiozaki
8 months ago
Browse files
Options
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
:
...
...
This diff is collapsed.
Click to expand it.
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