We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a6310 commit c2efa06Copy full SHA for c2efa06
1 file changed
twitter/api.py
@@ -230,7 +230,7 @@ def __init__(self,
230
self._debugHTTP = debugHTTP
231
self._shortlink_size = 19
232
if timeout and timeout < 30:
233
- warn("Warning: The Twitter streaming API sends 30s keepalives, the given timeout is shorter!")
+ warnings.warn("Warning: The Twitter streaming API sends 30s keepalives, the given timeout is shorter!")
234
self._timeout = timeout
235
self.__auth = None
236
0 commit comments