Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
8b6d2eec
Verified
Commit
8b6d2eec
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: remove errors for pre-3.4 python ssl
parent
95a00d96
No related branches found
No related tags found
1 merge request
!61
MAINT: Drop support for Python 3.6 and 3.7
Pipeline
#24110
passed
2 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosdb/connection/connection.py
+1
-12
1 addition, 12 deletions
src/caosdb/connection/connection.py
with
1 addition
and
12 deletions
src/caosdb/connection/connection.py
+
1
−
12
View file @
8b6d2eec
...
...
@@ -176,18 +176,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
if
"
ssl_version
"
in
config
and
config
[
"
cacert
"
]
is
not
None
:
ssl_version
=
getattr
(
ssl
,
config
[
"
ssl_version
"
])
else
:
try
:
ssl_version
=
ssl
.
PROTOCOL_TLS
except
AttributeError
:
# TODO(tfitschen): This can be removed since we require Python
# >= 3.8 anyway, can't it?
# deprecated since Python 3.6, but necessary until there.
try
:
ssl_version
=
ssl
.
PROTOCOL_TLSv1_2
except
AttributeError
:
print
(
"
It seems as if your Python version does not support current encryption
"
"
standards (such as TLS > 1.0), please upgrade to at least Python 3.4.
"
)
sys
.
exit
(
1
)
ssl_version
=
ssl
.
PROTOCOL_TLS
context
=
ssl
.
SSLContext
(
ssl_version
)
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment