Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removing the children from the str()

git-svn-id: http://billmill.org/svn/personal_code/python/trees@153 c4aad215-931b-0410-ba74-c4b90e0b6ad6
  • Loading branch information...
commit eaeb5834846378e352a6809bc9dd59d7b3f16729 1 parent 9595ec9
llimllib authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 gen.py
4 gen.py
@@ -8,9 +8,9 @@ def __init__(self, node="", *children):
8 8 else: self.children = []
9 9
10 10 def __str__(self):
11   - return "%s - %d children" % (self.node, len(self.children))
  11 + return "%s" % (self.node)
12 12 def __repr__(self):
13   - return "%s - %d children" % (self.node, len(self.children))
  13 + return "%s" % (self.node)
14 14
15 15 def __getitem__(self, key):
16 16 if isinstance(key, int) or isinstance(key, slice):

0 comments on commit eaeb583

Please sign in to comment.
Something went wrong with that request. Please try again.