eric6/WebBrowser/SafeBrowsing/SafeBrowsingUtilities.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingUtilities.py	Mon Sep 09 18:52:08 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