From 9f9ba1aaba9f3f223aaaae6a7426a80d29d47148 Mon Sep 17 00:00:00 2001 From: Andrew Wolf Date: Wed, 20 Feb 2019 11:07:54 +0300 Subject: [PATCH] Update gprof2dot requirement Upper bound of the version was set because of breaking change in grpof2dot. This commit changes function calls that were related to this breaking change and removes upper bound for grpof2dot requirement. --- requirements.txt | 2 +- setup.py | 2 +- silk/views/profile_dot.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 293854e4..727728e9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ Pillow>=3.2 Django>=1.11 freezegun>=0.3 factory-boy>=2.8.1 -gprof2dot>=2016.10.13,<2017.09.19 +gprof2dot>=2017.09.19 diff --git a/setup.py b/setup.py index a42572c2..506b5fb4 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,6 @@ def read_md(f): 'Jinja2', 'autopep8', 'pytz', - 'gprof2dot<2017.09.19', + 'gprof2dot>=2017.09.19', ] ) diff --git a/silk/views/profile_dot.py b/silk/views/profile_dot.py index b9b91c6d..23a61d1b 100644 --- a/silk/views/profile_dot.py +++ b/silk/views/profile_dot.py @@ -55,7 +55,7 @@ def _create_dot(profile, cutoff): """ node_cutoff = cutoff / 100.0 edge_cutoff = 0.1 / 100.0 - profile.prune(node_cutoff, edge_cutoff, False) + profile.prune(node_cutoff, edge_cutoff, [], False) with closing(StringIO()) as fp: DotWriter(fp).graph(profile, COLOR_MAP)