From 6850c6a378849b98af8a7c475a303379eece191f Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Thu, 22 Aug 2019 21:16:53 +0200 Subject: testing/py3-rdflib: new aport --- testing/py3-rdflib/py3.7.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 testing/py3-rdflib/py3.7.patch (limited to 'testing/py3-rdflib/py3.7.patch') diff --git a/testing/py3-rdflib/py3.7.patch b/testing/py3-rdflib/py3.7.patch new file mode 100644 index 0000000000..4e1bb4235e --- /dev/null +++ b/testing/py3-rdflib/py3.7.patch @@ -0,0 +1,19 @@ +diff -u -r RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py +--- RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py 2017-01-29 17:51:48.000000000 +0100 ++++ RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py 2018-07-29 17:31:55.614217759 +0200 +@@ -326,9 +326,12 @@ + # import pdb; pdb.set_trace() + res = evalPart(ctx, slice.p) + i = 0 +- while i < slice.start: +- res.next() +- i += 1 ++ try: ++ while i < slice.start: ++ res.next() ++ i += 1 ++ except StopIteration: ++ return + i = 0 + for x in res: + i += 1 -- cgit v1.2.3