Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Some py3 compatability

  • Loading branch information...
commit 31ca4a04410975f00a6ef1922f931749caa00f3f 1 parent 9e83a79
Mark Florisson authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  extensibletype/methodtable.pyx
3  extensibletype/methodtable.pyx
@@ -50,6 +50,9 @@ cdef class Hasher(object):
50 50 cdef uint64_t hashvalue
51 51 # cdef bytes md5 = hashlib.md5(signature).digest()
52 52 # (&hashvalue)[0] = (<uint64_t *> <char *> md5)[0]
  53 + if isinstance(signature, str):
  54 + # Python 3
  55 + signature = signature.encode("ascii")
53 56 hashvalue = intern.global_intern(signature)
54 57
55 58 return hashvalue

0 comments on commit 31ca4a0

Please sign in to comment.
Something went wrong with that request. Please try again.