summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-25 15:53:36 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-25 15:53:36 (GMT)
commit7218c2d2f44548e0b4bf14db1ff892662db00b1f (patch)
treea52c343419a7dea6d329f9655f0853ead510c3ba /Objects
parent1c1a1c5aa1d377a7354fdf050e3bf705ee8d5c41 (diff)
downloadcpython-7218c2d2f44548e0b4bf14db1ff892662db00b1f.zip
cpython-7218c2d2f44548e0b4bf14db1ff892662db00b1f.tar.gz
cpython-7218c2d2f44548e0b4bf14db1ff892662db00b1f.tar.bz2
Whitespace only changes
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 1f31805..416457d 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1131,8 +1131,7 @@ string_richcompare(PyStringObject *a, PyStringObject *b, int op)
much time, since Py_NE is rarely used. */
if (a->ob_size == b->ob_size
&& (a->ob_sval[0] == b->ob_sval[0]
- && memcmp(a->ob_sval, b->ob_sval,
- a->ob_size) == 0)) {
+ && memcmp(a->ob_sval, b->ob_sval, a->ob_size) == 0)) {
result = Py_True;
} else {
result = Py_False;
@@ -1145,7 +1144,7 @@ string_richcompare(PyStringObject *a, PyStringObject *b, int op)
c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval);
if (c==0)
c = memcmp(a->ob_sval, b->ob_sval, min_len);
- }else
+ } else
c = 0;
if (c == 0)
c = (len_a < len_b) ? -1 : (len_a > len_b) ? 1 : 0;