Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
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
Container registry
Model registry
Operate
Environments
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
juga
sbws
Commits
9b6dca73
Commit
9b6dca73
authored
6 years ago
by
Matt Traudt
Browse files
Options
Downloads
Patches
Plain Diff
Move line to avoid possible confusion wrt its relationship to a comment
parent
236f7d4a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/lib/destination.py
+1
-1
1 addition, 1 deletion
sbws/lib/destination.py
with
1 addition
and
1 deletion
sbws/lib/destination.py
+
1
−
1
View file @
9b6dca73
...
...
@@ -55,6 +55,7 @@ def connect_to_destination_over_circuit(dest, circ_id, session, cont, max_dl):
class
Destination
:
def
__init__
(
self
,
url
,
default_path
,
max_dl
):
self
.
_max_dl
=
max_dl
u
=
urlparse
(
url
)
# these things should have been verified in verify_config
assert
u
.
scheme
in
[
'
http
'
,
'
https
'
]
...
...
@@ -64,7 +65,6 @@ class Destination:
u
=
urlparse
(
'
{}://{}{}{}{}{}
'
.
format
(
*
u
[
0
:
2
],
default_path
,
*
u
[
2
:]))
self
.
_url
=
u
self
.
_max_dl
=
max_dl
def
is_usable
(
self
,
circ_id
,
session
,
cont
):
'''
Use **connect_to_destination_over_circuit** to determine if this
...
...
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