mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
zope.interface.implements() is deprecated. Use implementer decorator.
This commit is contained in:
parent
8dc51b9fb4
commit
1da3e0caa0
1 changed files with 2 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ from twisted.internet.defer import inlineCallbacks
|
|||
from twisted.web.client import Agent, _HTTP11ClientFactory, HTTPConnectionPool
|
||||
from twisted.web.http_headers import Headers
|
||||
from twisted.web.iweb import IBodyProducer
|
||||
from zope.interface import implements
|
||||
from zope.interface import implementer
|
||||
|
||||
from evennia.accounts.models import AccountDB
|
||||
from evennia.server.sessionhandler import SESSIONS
|
||||
|
|
@ -144,12 +144,11 @@ class SimpleResponseReceiver(protocol.Protocol):
|
|||
def connectionLost(self, reason=protocol.connectionDone):
|
||||
self.d.callback((self.status_code, self.buf))
|
||||
|
||||
|
||||
@implementer(IBodyProducer)
|
||||
class StringProducer(object):
|
||||
"""
|
||||
Used for feeding a request body to the tx HTTP client.
|
||||
"""
|
||||
implements(IBodyProducer)
|
||||
|
||||
def __init__(self, body):
|
||||
self.body = body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue