Commit 1e644d54 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add my pending-review patch for invoking patchpoints

Will get rid of it once it's merged upstream
parent d289a144
......@@ -48,9 +48,9 @@ Box* _tupleSlice(BoxedTuple* self, i64 start, i64 stop, i64 step) {
// This is adapted from CPython's PySlice_GetIndicesEx.
i64 slicelength;
if (step < 0)
slicelength = (stop - start + 1) / (step)+1;
slicelength = (stop - start + 1) / (step) + 1;
else
slicelength = (stop - start - 1) / (step)+1;
slicelength = (stop - start - 1) / (step) + 1;
if (slicelength < 0)
slicelength = 0;
......
......@@ -14,7 +14,7 @@ def verify_include_guard(_, dir, files):
if file_is_from_cpython(fn):
continue
expected_guard = "PYSTON" + fn[1:-2].replace('_', '').replace('/', '_').upper() + "_H"
expected_guard = "PYSTON" + fn[1:-2].replace('_', '').replace('-', '').replace('/', '_').upper() + "_H"
with open(fn) as f:
while True:
l = f.readline()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment