WebBrowser/SafeBrowsing/SafeBrowsingUrl.py

branch
safe_browsing
changeset 5817
a5f6c9128500
parent 5811
5358a3c7995f
child 5829
d3448873ced3
diff -r 93c74269d59e -r a5f6c9128500 WebBrowser/SafeBrowsing/SafeBrowsingUrl.py
--- a/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py	Thu Jul 20 18:57:41 2017 +0200
+++ b/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py	Mon Jul 24 18:40:07 2017 +0200
@@ -48,7 +48,7 @@
         in canonical form.
         
         @return generator for the URL hashes
-        @rtype generator of str (Python2) or bytes (Python3)
+        @rtype generator of bytes
         """
         for variant in self.permutations(self.canonical()):
             urlHash = self.digest(variant)
@@ -206,6 +206,6 @@
         @param url URL string
         @type str
         @return SHA256 digest of the URL string
-        @rtype str (Python2) or bytes (Python3)
+        @rtype bytes
         """
         return hashlib.sha256(url.encode('utf-8')).digest()

eric ide

mercurial