diff options
author | Luca Weiss <luca@z3ntu.xyz> | 2019-08-22 21:16:53 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-23 15:05:19 -0300 |
commit | 6850c6a378849b98af8a7c475a303379eece191f (patch) | |
tree | 6467b69431edcdffcde21edfd36eb8064e8ceae1 /testing/py3-rdflib/py3.7.patch | |
parent | df9a1c1f5cebd9cb8f6926b70142e9fa4f1debcb (diff) | |
download | aports-6850c6a378849b98af8a7c475a303379eece191f.tar.bz2 aports-6850c6a378849b98af8a7c475a303379eece191f.tar.xz |
testing/py3-rdflib: new aport
Diffstat (limited to 'testing/py3-rdflib/py3.7.patch')
-rw-r--r-- | testing/py3-rdflib/py3.7.patch | 19 |
1 files changed, 19 insertions, 0 deletions
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 |