summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2022-02-16 21:26:03 +0100
committermathieui <mathieui@mathieui.net>2022-02-16 21:26:03 +0100
commit98dba869c74f8f76d70d802ad13c0974905794e1 (patch)
tree114a7e94515b67d0535c86d1b92843704b7e3627
parent22b00c607306c10202c41cdc02ceb633e9f91740 (diff)
parentbcb4495c6d9aee6690ff23a1dc64a32abef410c9 (diff)
downloadslixmpp-98dba869c74f8f76d70d802ad13c0974905794e1.tar.gz
slixmpp-98dba869c74f8f76d70d802ad13c0974905794e1.tar.bz2
slixmpp-98dba869c74f8f76d70d802ad13c0974905794e1.tar.xz
slixmpp-98dba869c74f8f76d70d802ad13c0974905794e1.zip
Merge branch 'deprecate-xmpp-process' into 'master'
deprecate XMLStream.process() See merge request poezio/slixmpp!183
-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()