replace text.rextract() with rextr()

This commit is contained in:
Mike Fährmann
2025-05-23 18:28:58 +02:00
parent fe39b7d8c8
commit b81fc5c124
15 changed files with 23 additions and 25 deletions

View File

@@ -2083,8 +2083,7 @@ class DeviantartEclipseAPI():
pos = page.find('\\"name\\":\\"watching\\"')
if pos < 0:
raise exception.NotFoundError("'watching' module ID")
module_id = text.rextract(
page, '\\"id\\":', ',', pos)[0].strip('" ')
module_id = text.rextr(page, '\\"id\\":', ',', pos).strip('" ')
self._fetch_csrf_token(page)
return gruser_id, module_id