Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9eb0970b
Commit
9eb0970b
authored
Aug 24, 2015
by
Nikhil Jindal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13091 from mesosphere/python-set-sort
Fix sort on sets in hack/verify-flags-underscore.py
parents
4e51cb2a
ce013e28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
verify-flags-underscore.py
hack/verify-flags-underscore.py
+6
-4
No files found.
hack/verify-flags-underscore.py
View file @
9eb0970b
...
@@ -162,13 +162,15 @@ def get_flags(rootdir, files):
...
@@ -162,13 +162,15 @@ def get_flags(rootdir, files):
if
len
(
new_excluded_flags
)
!=
0
:
if
len
(
new_excluded_flags
)
!=
0
:
print
(
"Found a flag declared with an _ but which is not explicitly listed as a valid flag name in hack/verify-flags/excluded-flags.txt"
)
print
(
"Found a flag declared with an _ but which is not explicitly listed as a valid flag name in hack/verify-flags/excluded-flags.txt"
)
print
(
"Are you certain this flag should not have been declared with an - instead?"
)
print
(
"Are you certain this flag should not have been declared with an - instead?"
)
new_excluded_flags
.
sort
()
l
=
list
(
new_excluded_flags
)
print
(
"
%
s"
%
"
\n
"
.
join
(
new_excluded_flags
))
l
.
sort
()
print
(
"
%
s"
%
"
\n
"
.
join
(
l
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
if
len
(
new_flags
)
!=
0
:
if
len
(
new_flags
)
!=
0
:
print
(
"Found flags in golang files not in the list of known flags. Please add these to hack/verify-flags/known-flags.txt"
)
print
(
"Found flags in golang files not in the list of known flags. Please add these to hack/verify-flags/known-flags.txt"
)
new_flags
.
sort
()
l
=
list
(
new_flags
)
print
(
"
%
s"
%
"
\n
"
.
join
(
new_flags
))
l
.
sort
()
print
(
"
%
s"
%
"
\n
"
.
join
(
l
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
return
list
(
flags
)
return
list
(
flags
)
...
...
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