Ran black on branc
This commit is contained in:
parent
6effb6f456
commit
4ea6209123
230 changed files with 7108 additions and 2395 deletions
|
|
@ -7,7 +7,13 @@ import time
|
|||
from collections import deque, namedtuple
|
||||
from twisted.internet import reactor
|
||||
from django.conf import settings
|
||||
from evennia.server.sessionhandler import SessionHandler, PCONN, PDISCONN, PCONNSYNC, PDISCONNALL
|
||||
from evennia.server.sessionhandler import (
|
||||
SessionHandler,
|
||||
PCONN,
|
||||
PDISCONN,
|
||||
PCONNSYNC,
|
||||
PDISCONNALL,
|
||||
)
|
||||
from evennia.utils.logger import log_trace
|
||||
|
||||
# module import
|
||||
|
|
@ -250,7 +256,9 @@ class PortalSessionHandler(SessionHandler):
|
|||
path, clsname = protocol_path.rsplit(".", 1)
|
||||
cls = _MOD_IMPORT(path, clsname)
|
||||
if not cls:
|
||||
raise RuntimeError("ServerConnect: protocol factory '%s' not found." % protocol_path)
|
||||
raise RuntimeError(
|
||||
"ServerConnect: protocol factory '%s' not found." % protocol_path
|
||||
)
|
||||
protocol = cls(self, **config)
|
||||
protocol.start()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue