--- 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()