summaryrefslogtreecommitdiff
path: root/contrib/scripts/find_typedefs.py
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-12 18:17:27 +0000
committerng0 <ng0@n0.is>2019-10-12 18:17:27 +0000
commit3371f389918feb4b428dfd129464c555852b4189 (patch)
tree1f08a65a70869835fa6ed20e614252ac72921611 /contrib/scripts/find_typedefs.py
parenta5f5e7ed9b07b902af4438d76087e034abcba9b2 (diff)
more python format
Diffstat (limited to 'contrib/scripts/find_typedefs.py')
-rw-r--r--contrib/scripts/find_typedefs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/scripts/find_typedefs.py b/contrib/scripts/find_typedefs.py
index 804eae235..965be3c34 100644
--- a/contrib/scripts/find_typedefs.py
+++ b/contrib/scripts/find_typedefs.py
@@ -4,7 +4,6 @@ import os
import re
import sys
-
debug = False
@@ -14,7 +13,8 @@ def get_td_from_function_signature(line, file, num):
left_paren += 1
li = line[left_paren:]
right_paren = line.find(')')
- if right_paren > 0 and right_paren > left_paren and line[right_paren:].find('(') >= 0:
+ if right_paren > 0 and right_paren > left_paren and line[
+ right_paren:].find('(') >= 0:
fname = line[:right_paren]
fname = fname.lstrip(' ').lstrip('*').lstrip(' ').rstrip(' ')
if len(fname) > 0:
@@ -70,7 +70,7 @@ def find_typedefs(file):
td_line.append(l[rightcbrace + 1:])
else:
td_line.append(l)
- if len(l) > 0 and l[-1] == ';' and(not td_struct or td_level == 0):
+ if len(l) > 0 and l[-1] == ';' and (not td_struct or td_level == 0):
td_line = ' '.join(td_line)
td_line = td_line[:-1]
if len(td_line) > 0: