diff options
Diffstat (limited to 'rdflib/query.py')
-rw-r--r-- | rdflib/query.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/rdflib/query.py b/rdflib/query.py index 7bb4550d..5211c326 100644 --- a/rdflib/query.py +++ b/rdflib/query.py @@ -221,7 +221,6 @@ class Result(object): """ def __init__(self, type_: str): - if type_ not in ("CONSTRUCT", "DESCRIBE", "SELECT", "ASK"): raise ResultException("Unknown Result type: %s" % type_) @@ -252,7 +251,6 @@ class Result(object): Iterator[Mapping[Variable, Identifier]], ], ) -> None: - if isinstance(b, (types.GeneratorType, itertools.islice)): self._genbindings = b self._bindings = [] |