Skip to content

Commit

Permalink
Fix/ignore flake8 errors in rdflib/parser.py (#2016)
Browse files Browse the repository at this point in the history
Fix or ignore flake8 errors in `rdflib/parser.py` so that changes to
this file does not cause flake8 errors when they invalidate the
flakehell baseline.
  • Loading branch information
aucampia committed Jul 13, 2022
1 parent 512b9b3 commit 9c75860
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rdflib/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ def __init__(self, data, system_id=None):
self.system_id = system_id
self.data = data

def getPublicId(self):
def getPublicId(self): # noqa: N802
return self.public_id

def setPublicId(self, public_id):
def setPublicId(self, public_id): # noqa: N802
self.public_id = public_id

def getSystemId(self):
def getSystemId(self): # noqa: N802
return self.system_id

def setSystemId(self, system_id):
def setSystemId(self, system_id): # noqa: N802
self.system_id = system_id

def close(self):
Expand Down Expand Up @@ -208,7 +208,7 @@ def get_links(cls, response: "HTTPResponse"):
linkslines = cls.getallmatchingheaders(response.headers, "Link")
retarray = []
for linksline in linkslines:
links = [l.strip() for l in linksline.split(",")]
links = [linkstr.strip() for linkstr in linksline.split(",")]
for link in links:
retarray.append(link)
return retarray
Expand Down Expand Up @@ -333,7 +333,7 @@ def create_input_source(
source: Optional[
Union[IO[bytes], TextIO, InputSource, str, bytes, pathlib.PurePath]
] = None,
publicID: Optional[str] = None,
publicID: Optional[str] = None, # noqa: N803
location: Optional[str] = None,
file: Optional[Union[BinaryIO, TextIO]] = None,
data: Union[str, bytes, dict] = None,
Expand Down

0 comments on commit 9c75860

Please sign in to comment.