summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-17 07:54:55 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-17 07:54:55 (GMT)
commitca56dd4767617a2f5e946130de4beb06442a5cd5 (patch)
tree8697f0e83d6b4f3758eaf4b89abc944b6e6db71f /Objects/rangeobject.c
parentfd2f85d6e4e8abc9c943cf56cf45527d522c7882 (diff)
downloadcpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.zip
cpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.tar.gz
cpython-ca56dd4767617a2f5e946130de4beb06442a5cd5.tar.bz2
Issue #28139: Fix messed up indentation
Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 5203f40..baa8dee 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -30,11 +30,11 @@ get_len_of_range(long lo, long hi, long step)
---------------------------------------------------------------*/
assert(step != 0);
if (step > 0 && lo < hi)
- return 1UL + (hi - 1UL - lo) / step;
+ return 1UL + (hi - 1UL - lo) / step;
else if (step < 0 && lo > hi)
- return 1UL + (lo - 1UL - hi) / (0UL - step);
+ return 1UL + (lo - 1UL - hi) / (0UL - step);
else
- return 0UL;
+ return 0UL;
}
/* Return a stop value suitable for reconstructing the xrange from