Don't compare with limit if limit is None. Fixes #124.

This commit is contained in:
hugovk 2015-04-26 20:11:49 +03:00
parent be8ae40caf
commit 926c01a97e

View file

@ -396,7 +396,7 @@ class _Network(object):
seq = [] seq = []
for node in doc.getElementsByTagName("tag"): for node in doc.getElementsByTagName("tag"):
if len(seq) >= limit: if limit and len(seq) >= limit:
break break
tag = Tag(_extract(node, "name"), self) tag = Tag(_extract(node, "name"), self)
weight = _number(_extract(node, "count")) weight = _number(_extract(node, "count"))