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
itminedu
kamaki
Commits
75ee7a88
Commit
75ee7a88
authored
Jan 30, 2013
by
Stavros Sachtouris
Browse files
Remove obsolete method check_range
parent
edab7ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/pithos_cli.py
View file @
75ee7a88
...
...
@@ -96,30 +96,6 @@ def raise_connection_errors(e):
])
def
check_range
(
start
,
end
):
"""
:param start: (int)
:param end: (int)
:returns: (int(start), int(end))
:raises CLIError - Invalid start/end value in range
:raises CLIError - Invalid range
"""
try
:
start
=
int
(
start
)
except
ValueError
as
e
:
raiseCLIError
(
e
,
'Invalid start value %s in range'
%
start
)
try
:
end
=
int
(
end
)
except
ValueError
as
e
:
raiseCLIError
(
e
,
'Invalid end value %s in range'
%
end
)
if
start
>
end
:
raiseCLIError
(
'Invalid range %s-%s'
%
(
start
,
end
))
return
(
start
,
end
)
class
DelimiterArgument
(
ValueArgument
):
"""
:value type: string
...
...
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