Skip to content

Commit

Permalink
refactor: remove redundant class (#2143)
Browse files Browse the repository at this point in the history
`rdflib.plugins.sparql.parserutils.plist` has no good purpose.
  • Loading branch information
veyndan committed Nov 19, 2022
1 parent e68cfe4 commit c28270a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rdflib/plugins/sparql/parserutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@ def __init__(self, name, expr):
Param.__init__(self, name, expr, True)


class plist(list):
"""this is just a list, but we want our own type to check for"""

pass


class CompValue(OrderedDict):

"""
Expand Down Expand Up @@ -244,7 +238,7 @@ def postParse(self, instring, loc, tokenList):
if isinstance(t, ParamValue):
if t.isList:
if t.name not in res:
res[t.name] = plist()
res[t.name] = []
res[t.name].append(t.tokenList)
else:
res[t.name] = t.tokenList
Expand Down

0 comments on commit c28270a

Please sign in to comment.