]> granicus.if.org Git - python/commitdiff
SF #1701207: svnversion_init assertion failed
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 16 Apr 2007 06:12:02 +0000 (06:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 16 Apr 2007 06:12:02 +0000 (06:12 +0000)
Revert bogus asserts (added to the wrong place) from rev 52501.

Approved by Anthony.

Python/sysmodule.c

index 59f6cfc684d52bf4bc676942af12fc75e02d1f21..4598a3ce7472df19d926fd71d1f344f6fc5fb3b2 100644 (file)
@@ -997,8 +997,6 @@ svnversion_init(void)
        }
        else if (istag || strncmp(br_start, "branches", 8) == 0) {
                len = br_end2 - br_start;
-               assert(len >= 13);
-               assert(len < (sizeof(patchlevel_revision) - 13));
                strncpy(branch, br_start, len);
                branch[len] = '\0';