From e7f20a1953b3f1cf55d39ea0b8161993f0cf31f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B1=A1=E9=81=93?= Date: Tue, 30 May 2017 04:07:24 -0400 Subject: [PATCH] Update ast.py --- shopify_python/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shopify_python/ast.py b/shopify_python/ast.py index ea8f516..06a49ec 100644 --- a/shopify_python/ast.py +++ b/shopify_python/ast.py @@ -2,7 +2,7 @@ def count_tree_size(node): # type: (astroid.NodeNG) -> int - size = 1 + size = 1 if node else 0 for child in node.get_children(): size += count_tree_size(child) return size