eric6/WebBrowser/SafeBrowsing/SafeBrowsingUtilities.py

branch
without_py2_and_pyqt4
changeset 7197
331569d44b19
parent 7196
ab0a91b82b37
child 7198
684261ef2165
diff -r ab0a91b82b37 -r 331569d44b19 eric6/WebBrowser/SafeBrowsing/SafeBrowsingUtilities.py
--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingUtilities.py	Sun Sep 01 17:43:03 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2017 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing some utilities for Google Safe Browsing.
-"""
-
-from __future__ import unicode_literals
-
-import sys
-
-if sys.version_info < (3, 0):
-    def toHex(value):
-        """
-        Public method to convert a bytes array to a hex string.
-        
-        @param value value to be converted
-        @type bytes
-        @return hex string
-        @rtype str
-        """
-        return value.encode("hex")
-else:
-    def toHex(value):
-        """
-        Public method to convert a bytes array to a hex string.
-        
-        @param value value to be converted
-        @type bytes
-        @return hex string
-        @rtype str
-        """
-        return value.hex()

eric ide

mercurial