Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Merret Buurman
pidlandingpage
Commits
fc27b94e
Commit
fc27b94e
authored
Aug 05, 2016
by
Merret Buurman
Browse files
Removed two unneccesary string.strip() calls.
parent
ca30517d
Changes
1
Hide whitespace changes
Inline
Side-by-side
landingpage/landingpageapp/handle/retrieval.py
View file @
fc27b94e
...
...
@@ -41,7 +41,7 @@ def _get_handle_server_from_config():
def
_get_global_handle_resolver
():
try
:
val
=
DEFAULTS
[
'globalresolver'
]
return
val
.
strip
(
'/'
)
return
val
except
KeyError
:
msg
=
'No default URL for the global handle resolver found.'
LOGGER
.
error
(
msg
)
...
...
@@ -51,7 +51,7 @@ def _get_resolver_base_url():
handleserver
=
_get_handle_server_from_config
()
if
handleserver
is
None
:
handleserver
=
_get_global_handle_resolver
()
return
handleserver
.
rstrip
(
'/'
)
return
handleserver
def
_get_resolver_url
():
base_url
=
_get_resolver_base_url
()
...
...
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