Skip to content

Commit

Permalink
Re-added weakref to tree
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed Nov 10, 2016
1 parent 0c314b0 commit 453f387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion influxgraph/classes/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from __future__ import absolute_import, print_function
import sys
import json
import weakref

from graphite_api.utils import is_pattern
from graphite_api.finders import match_entries
Expand All @@ -27,7 +28,7 @@ class Node(object):
"""Node class of a graphite metric"""

def __init__(self, parent=None):
self.parent = parent
self.parent = weakref.ref(parent) if parent else parent
self.children = {}

def is_leaf(self):
Expand Down

0 comments on commit 453f387

Please sign in to comment.