--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py Sat Jan 16 16:32:01 2021 +0100 +++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py Sat Jan 16 16:50:00 2021 +0100 @@ -39,8 +39,8 @@ Public method to get the hashes of all possible permutations of the URL in canonical form. - @return generator for the URL hashes - @rtype generator of bytes + @yield URL hashes + @ytype bytes """ for variant in self.permutations(self.canonical()): urlHash = self.digest(variant) @@ -133,8 +133,8 @@ @param url URL string to be permuted @type str - @return generator of permuted URL strings - @rtype generator of str + @yield permutated URL strings + @ytype str """ def hostPermutations(host): """ @@ -142,8 +142,8 @@ @param host host name @type str - @return generator of permuted host names - @rtype generator of str + @yield permutated host names + @ytype str """ if re.match(r'\d+\.\d+\.\d+\.\d+', host): yield host @@ -161,8 +161,8 @@ @param path path to be processed @type str - @return generator of permuted paths - @rtype generator of str + @yield permutated paths + @ytype str """ yield path query = None