Skip to content

Commit e3bdf17

Browse files
authored
Merge pull request #2124 from sopel-irc/URLCallback-yield-from
plugins.rules.URLCallback: use `yield from` expression
2 parents 86cbbe4 + aa52a39 commit e3bdf17

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sopel/plugins/rules.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,7 @@ def match(self, bot, pretrigger):
16751675
# skip invalid URLs
16761676
continue
16771677

1678-
# TODO: convert to 'yield from' when dropping Python 2.7
1679-
for result in self.parse(url):
1680-
yield result
1678+
yield from self.parse(url)
16811679

16821680
def parse(self, text):
16831681
for regex in self._regexes:

0 commit comments

Comments
 (0)