'python' implementation of hex functions
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@290 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
e568dc77d3
commit
d7787131e4
@ -44,10 +44,13 @@ def encrypt(plainstring, R):
|
||||
|
||||
|
||||
def hexString(s):
|
||||
xxx
|
||||
import binascii
|
||||
return binascii.hexlify(s)
|
||||
|
||||
def deHexString(h):
|
||||
xxx
|
||||
import binascii
|
||||
h = "".join(h.split())
|
||||
return binascii.unhexlify(h)
|
||||
|
||||
|
||||
def _test():
|
||||
|
Loading…
x
Reference in New Issue
Block a user