Skip to content

Commit 4844a13

Browse files
committed
lint fixes for linux-symbolication-improvements.
1 parent 156f542 commit 4844a13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/symbolicate-linux-fatal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ except ImportError:
3535
swift_exec = spawn.find_executable('swift')
3636
if swift_exec is not None:
3737
site_packages = os.path.join(os.path.dirname(swift_exec),
38-
'../lib/python2.7/site-packages/')
38+
'../lib/python2.7/site-packages/')
3939
import sys
4040
sys.path.append(site_packages)
4141
import lldb
@@ -67,6 +67,7 @@ def create_lldb_target(binary, memmap):
6767
lldb_target.SetModuleLoadAddress(module, memmap[dynlib_path])
6868
return lldb_target
6969

70+
7071
def add_lldb_target_modules(lldb_target, memmap):
7172
for dynlib_path in memmap:
7273
module = lldb_target.AddModule(
@@ -76,6 +77,7 @@ def add_lldb_target_modules(lldb_target, memmap):
7677
lldb_target = None
7778
known_memmap = {}
7879

80+
7981
def process_stack(binary, dyn_libs, stack):
8082
global lldb_target
8183
global known_memmap
@@ -116,7 +118,7 @@ def process_stack(binary, dyn_libs, stack):
116118
full_stack.append(
117119
{"line": line, "framePC": framePC, "dynlib_fname": dynlib_fname})
118120

119-
if lldb_target == None:
121+
if lldb_target is None:
120122
lldb_target = create_lldb_target(binary, memmap)
121123
else:
122124
add_lldb_target_modules(lldb_target, memmap)
@@ -159,7 +161,7 @@ def main():
159161
"binary", help="Executable which produced the log file")
160162
parser.add_argument(
161163
"log", nargs='?', type=argparse.FileType("rU"), default="-",
162-
help="Log file containing the stack trace to symbolicate. Defaults to stdin.")
164+
help="Log file for symbolication. Defaults to stdin.")
163165
args = parser.parse_args()
164166

165167
binary = args.binary

0 commit comments

Comments
 (0)