Rev3831, Fix Stats page compatibility with latest gevent
This commit is contained in:
parent
8447c6d79f
commit
c2b879ccab
3 changed files with 6 additions and 5 deletions
|
@ -13,7 +13,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.6.4"
|
||||
self.rev = 3829
|
||||
self.rev = 3831
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.pending_changes = {}
|
||||
|
|
|
@ -31,7 +31,7 @@ import SiteManager
|
|||
class Site(object):
|
||||
|
||||
def __init__(self, address, allow_create=True, settings=None):
|
||||
self.address = re.sub("[^A-Za-z0-9]", "", address) # Make sure its correct address
|
||||
self.address = str(re.sub("[^A-Za-z0-9]", "", address)) # Make sure its correct address
|
||||
self.address_hash = hashlib.sha256(self.address).digest()
|
||||
self.address_short = "%s..%s" % (self.address[:6], self.address[-4:]) # Short address for logging
|
||||
self.log = logging.getLogger("Site:%s" % self.address_short)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue