eric6/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py

changeset 7988
c4c17121eff8
parent 7923
91e843545d9a
child 8207
d359172d11be
diff -r e8eb8370ea94 -r c4c17121eff8 eric6/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py
--- 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

eric ide

mercurial