diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-01-19 19:12:01 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-01-19 19:12:01 (GMT) |
commit | 2336bddd5dba559db950e8b5fa73257fc62d1fc3 (patch) | |
tree | 15256a53494c4a5c75d748a26402906177b3d523 /Objects/longobject.c | |
parent | 587c2bfedee6f6c5ee16b4e7eb5392d270a0c1a6 (diff) | |
download | cpython-2336bddd5dba559db950e8b5fa73257fc62d1fc3.zip cpython-2336bddd5dba559db950e8b5fa73257fc62d1fc3.tar.gz cpython-2336bddd5dba559db950e8b5fa73257fc62d1fc3.tar.bz2 |
Fix Issue #1769: Now int('- 1') or int('+ 1') is not allowed
any more. Thanks Juan Jose Conti. Also added tests.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 4b7eee0..18f158a 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1685,8 +1685,6 @@ PyLong_FromString(char *str, char **pend, int base) ++str; sign = -1; } - while (*str != '\0' && isspace(Py_CHARMASK(*str))) - str++; if (base == 0) { if (str[0] != '0') base = 10; |