Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
llvm
hpvm-release
Commits
260dde9e
Commit
260dde9e
authored
4 years ago
by
nz11
Browse files
Options
Downloads
Patches
Plain Diff
fix parse_int
parent
3c1f9f7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/scripts/hpvm_installer.py
+1
-0
1 addition, 0 deletions
hpvm/scripts/hpvm_installer.py
with
1 addition
and
0 deletions
hpvm/scripts/hpvm_installer.py
+
1
−
0
View file @
260dde9e
...
@@ -74,6 +74,7 @@ def prompt_args():
...
@@ -74,6 +74,7 @@ def prompt_args():
def
parse_int
(
s
:
str
):
def
parse_int
(
s
:
str
):
try
:
try
:
v
=
int
(
s
)
v
=
int
(
s
)
return
v
except
ValueError
:
except
ValueError
:
return
None
return
None
if
v
<=
0
:
if
v
<=
0
:
...
...
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