del converting from util
This commit is contained in:
parent
4e6ff21916
commit
0f6984c63e
@ -9,15 +9,6 @@ def log(data):
|
|||||||
fl.write(str(data))
|
fl.write(str(data))
|
||||||
|
|
||||||
|
|
||||||
def string_to_bin(tox_id):
|
|
||||||
return tox_id.decode('hex')
|
|
||||||
|
|
||||||
|
|
||||||
def bin_to_string(raw_id):
|
|
||||||
res = ''.join('{:02x}'.format(ord(x)) for x in raw_id)
|
|
||||||
return res.upper()
|
|
||||||
|
|
||||||
|
|
||||||
def curr_directory():
|
def curr_directory():
|
||||||
return os.path.dirname(os.path.realpath(__file__))
|
return os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user