diff --git a/memory/replace/dmd/block_analyzer.py b/memory/replace/dmd/block_analyzer.py index 7a3765471878..eb26c9f5f511 100644 --- a/memory/replace/dmd/block_analyzer.py +++ b/memory/replace/dmd/block_analyzer.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # 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 @@ -9,8 +9,6 @@ # contain pointers to it. This can be useful when investigating leaks # caused by unknown references to refcounted objects. -from __future__ import absolute_import, print_function - import argparse import gzip import json @@ -160,7 +158,7 @@ def show_referrers(args, blocks, stacks, block): while True: referrers = {} - for b, data in blocks.iteritems(): + for b, data in blocks.items(): which_edge = 0 for e in data.contents: if e == block: