summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2022-02-15 21:57:49 +0100
committermathieui <mathieui@mathieui.net>2022-02-15 21:57:49 +0100
commitbcb4495c6d9aee6690ff23a1dc64a32abef410c9 (patch)
tree578de85be588cc743113125bcdb5b80418bd104e
parent92c3f69829fad6e77e25aab64bdbcf988d937994 (diff)
downloadslixmpp-bcb4495c6d9aee6690ff23a1dc64a32abef410c9.tar.gz
slixmpp-bcb4495c6d9aee6690ff23a1dc64a32abef410c9.tar.bz2
slixmpp-bcb4495c6d9aee6690ff23a1dc64a32abef410c9.tar.xz
slixmpp-bcb4495c6d9aee6690ff23a1dc64a32abef410c9.zip
deprecate XMLStream.process()
-rw-r--r--slixmpp/xmlstream/xmlstream.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 82611bfd..67238cc6 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -32,8 +32,9 @@ import functools
import logging
import socket as Socket
import ssl
-import weakref
import uuid
+import warnings
+import weakref
from contextlib import contextmanager
import xml.etree.ElementTree as ET
@@ -508,7 +509,17 @@ class XMLStream(asyncio.BaseProtocol):
timers, handling signal events, etc). If timeout is None, this
function will run forever. If timeout is a number, this function
will return after the given time in seconds.
+
+ Will be removed in slixmpp 1.9.0
+
+ :deprecated: 1.8.0
"""
+ warnings.warn(
+ 'This function will be removed in slixmpp 1.9 and above.'
+ ' Use the asyncio normal functions instead.',
+ category=DeprecationWarning,
+ stacklevel=2,
+ )
if timeout is None:
if forever:
self.loop.run_forever()