[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: more python format
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: more python format |
Date: |
Sat, 12 Oct 2019 20:19:51 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 3371f3899 more python format
3371f3899 is described below
commit 3371f389918feb4b428dfd129464c555852b4189
Author: ng0 <address@hidden>
AuthorDate: Sat Oct 12 18:17:27 2019 +0000
more python format
---
contrib/scripts/find_typedefs.py | 6 +++---
contrib/scripts/gdb-iterate-dll.py | 3 ++-
2 files changed, 5 insertions(+), 4 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:
diff --git a/contrib/scripts/gdb-iterate-dll.py
b/contrib/scripts/gdb-iterate-dll.py
index 79d46aa96..28c435ccb 100644
--- a/contrib/scripts/gdb-iterate-dll.py
+++ b/contrib/scripts/gdb-iterate-dll.py
@@ -23,7 +23,8 @@ def search_dll(head, field, match, pfield):
if field_val.type.code == gdb.TYPE_CODE_INT:
val = int(field_val)
res = (match == val)
- elif (field_val.type.code == gdb.TYPE_CODE_STRING) or
(field_val.type.code == gdb.TYPE_CODE_ARRAY):
+ elif (field_val.type.code == gdb.TYPE_CODE_STRING
+ ) or (field_val.type.code == gdb.TYPE_CODE_ARRAY):
val = str(field_val)
res = (match == val)
elif (field_val.type.code == gdb.TYPE_CODE_TYPEDEF):
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: more python format,
gnunet <=