Rev4016, Add ad test Python 3.4 compatibility
This commit is contained in:
parent
1da6c8c84e
commit
60405bf222
5 changed files with 10 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
import logging
|
||||
import json
|
||||
import time
|
||||
import binascii
|
||||
|
||||
import gevent
|
||||
|
||||
|
@ -53,7 +54,7 @@ class User(object):
|
|||
self.delayed_save_thread = gevent.spawn_later(5, self.save)
|
||||
|
||||
def getAddressAuthIndex(self, address):
|
||||
return int(address.encode("ascii").hex(), 16)
|
||||
return int(binascii.hexlify(address.encode()), 16)
|
||||
|
||||
@util.Noparallel()
|
||||
def generateAuthAddress(self, address):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue