Reformat project

This commit is contained in:
2022-07-21 13:40:05 +01:00
parent 4ecb37b179
commit 2fecd98978
44 changed files with 363 additions and 236 deletions

View File

@@ -1,9 +1,8 @@
from twisted.internet.threads import deferToThread
from string import digits
import main
from utils.logging.log import *
from utils.logging.debug import debug, trace
from utils.logging.log import warn
from utils.logging.debug import trace
from utils.parsing import parsen
@@ -97,7 +96,7 @@ def _initialUsers(name, channel, users):
def initialUsers(name, channel, users):
trace("Initialising WHO records for %s on %s" % (channel, name))
d = deferToThread(_initialUsers, name, channel, users)
deferToThread(_initialUsers, name, channel, users)
# d.addCallback(testCallback)
@@ -114,7 +113,7 @@ def _initialNames(name, channel, names):
def initialNames(name, channel, names):
trace("Initialising NAMES records for %s on %s" % (channel, name))
d = deferToThread(_initialNames, name, channel, names)
deferToThread(_initialNames, name, channel, names)
# d.addCallback(testCallback)
@@ -260,5 +259,5 @@ def _delChannels(net, channels):
def delChannels(net, channels): # we have left a channel
trace("Purging channel %s for %s" % (", ".join(channels), net))
d = deferToThread(_delChannels, net, channels)
deferToThread(_delChannels, net, channels)
# d.addCallback(testCallback)