forked from mirrors/gecko-dev
Bug 1805690 - Convert block_analyzer.py to python3. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D164687
This commit is contained in:
parent
4152c551cc
commit
d7cb72e2ac
1 changed files with 2 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
|
@ -9,8 +9,6 @@
|
||||||
# contain pointers to it. This can be useful when investigating leaks
|
# contain pointers to it. This can be useful when investigating leaks
|
||||||
# caused by unknown references to refcounted objects.
|
# caused by unknown references to refcounted objects.
|
||||||
|
|
||||||
from __future__ import absolute_import, print_function
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import gzip
|
import gzip
|
||||||
import json
|
import json
|
||||||
|
|
@ -160,7 +158,7 @@ def show_referrers(args, blocks, stacks, block):
|
||||||
while True:
|
while True:
|
||||||
referrers = {}
|
referrers = {}
|
||||||
|
|
||||||
for b, data in blocks.iteritems():
|
for b, data in blocks.items():
|
||||||
which_edge = 0
|
which_edge = 0
|
||||||
for e in data.contents:
|
for e in data.contents:
|
||||||
if e == block:
|
if e == block:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue