Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-web-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
ai3
tools
python-web-common
Commits
04cd2b0c
Commit
04cd2b0c
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused utility function
parent
e7957645
No related branches found
No related tags found
1 merge request
!1
Refactor rpc library
Pipeline
#11100
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ai_web_common/rpc/core.py
+0
-7
0 additions, 7 deletions
ai_web_common/rpc/core.py
with
0 additions
and
7 deletions
ai_web_common/rpc/core.py
+
0
−
7
View file @
04cd2b0c
...
@@ -122,13 +122,6 @@ def _get_pool(cls, host, port, **kwargs):
...
@@ -122,13 +122,6 @@ def _get_pool(cls, host, port, **kwargs):
return
p
return
p
def
_split_host_port
(
netloc
):
if
'
:
'
not
in
netloc
:
return
netloc
,
80
host
,
port
=
netloc
.
split
(
'
:
'
,
1
)
return
host
,
int
(
port
)
def
_ssl_context
(
cert_path
,
key_path
,
ca_path
):
def
_ssl_context
(
cert_path
,
key_path
,
ca_path
):
context
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_TLSv1_2
)
context
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_TLSv1_2
)
context
.
verify_mode
=
ssl
.
CERT_REQUIRED
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