Clean up asserts in Tree.
authorDave Borowitz <dborowitz@google.com>
Wed, 28 Apr 2010 17:43:08 +0000 (10:43 -0700)
committerDave Borowitz <dborowitz@google.com>
Wed, 12 May 2010 16:40:22 +0000 (09:40 -0700)
commite437b2b072f96c2d4a2f997aa0a2d655fd282829
treea00c91b3c6664ca320dcd56fa554db71dafaae81
parentdf6ea6aa5724ce7862a6c838ae7214548d611687
Clean up asserts in Tree.

Document the types of arguments to various tree methods instead of
asserting. In particular, these asserts were causing failures in
python2.4, when reading modes from the index resulted in a long rather
than an int. This is harmless, so the asserts were just dropped.

Change-Id: I4a8f8b1527e0fd9571ebdb760e09230f25ac3918
dulwich/objects.py