Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDold committed Mar 12, 2024
1 parent 31b323b commit d2a4882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/style/check-parameter-order.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ def get_constructor_parameters(cc_file, class_name):
return (False, "")

def matching(opening, closing):
return (opening, closing) == ('(',')') or (opening, closing) == ('[',']')
return (opening, closing) == ('(', ')') or (opening, closing) == ('[', ']')

def extract_feature_parameter_list(feature_name):
s = str(subprocess.run(["./../../builds/release/bin/downward", "--help", "--txt2tags", "{}".format(feature_name)], stdout=subprocess.PIPE).stdout)
position = s.find(feature_name + "(")
assert position != -1
s = s[position + len(feature_name) +1 ::] # start after the first '('
s = s[position + len(feature_name) + 1::] # start after the first '('
stack = ['(']
result = []
for c in s:
Expand Down

0 comments on commit d2a4882

Please sign in to comment.