Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 41465:d67b5d953b45 2.5
SF #1701207: svnversion_init assertion failed
Revert bogus asserts (added to the wrong place) from rev 52501.
Approved by Anthony.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 16 Apr 2007 06:12:02 +0000 |
| parents | da30a26dfeb3 |
| children | f9763c363cc3 787b969d37f0 |
comparison
equal
deleted
inserted
replaced
| 41461:ed820239f878 | 41465:d67b5d953b45 |
|---|---|
| 995 strcpy(shortbranch, "trunk"); | 995 strcpy(shortbranch, "trunk"); |
| 996 | 996 |
| 997 } | 997 } |
| 998 else if (istag || strncmp(br_start, "branches", 8) == 0) { | 998 else if (istag || strncmp(br_start, "branches", 8) == 0) { |
| 999 len = br_end2 - br_start; | 999 len = br_end2 - br_start; |
| 1000 assert(len >= 13); | |
| 1001 assert(len < (sizeof(patchlevel_revision) - 13)); | |
| 1002 strncpy(branch, br_start, len); | 1000 strncpy(branch, br_start, len); |
| 1003 branch[len] = '\0'; | 1001 branch[len] = '\0'; |
| 1004 | 1002 |
| 1005 len = br_end2 - (br_end + 1); | 1003 len = br_end2 - (br_end + 1); |
| 1006 strncpy(shortbranch, br_end + 1, len); | 1004 strncpy(shortbranch, br_end + 1, len); |
