Skip to content

Commit 29bf6f8

Browse files
committed
Remove unused parameter
1 parent be2bbef commit 29bf6f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎language_check/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Match:
113113
('url', str), ('category', str), ('locqualityissuetype', str),
114114
])
115115

116-
def __init__(self, attrib, text=None):
116+
def __init__(self, attrib):
117117
for k, v in attrib.items():
118118
setattr(self, k, v)
119119

@@ -238,7 +238,7 @@ def _spell_checking_rules(self):
238238
def check(self, text: str, srctext=None) -> [Match]:
239239
"""Match text against enabled rules."""
240240
root = self._get_root(self._url, self._encode(text, srctext))
241-
return [Match(e.attrib, text) for e in root if e.tag == 'error']
241+
return [Match(e.attrib) for e in root if e.tag == 'error']
242242

243243
def _check_api(self, text: str, srctext=None) -> bytes:
244244
"""Match text against enabled rules (result in XML format)."""

0 commit comments

Comments
 (0)