Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
use warn() instead of print() for timeout floor in stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylow committed Dec 2, 2017
1 parent 90a6e8c commit d28e21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def __init__(self,
self._debugHTTP = debugHTTP
self._shortlink_size = 19
if timeout and timeout < 30:
print("Warning: The Twitter streaming API sends 30s keepalives, the given timeout is shorter!")
warn("Warning: The Twitter streaming API sends 30s keepalives, the given timeout is shorter!")
self._timeout = timeout
self.__auth = None

Expand Down

0 comments on commit d28e21c

Please sign in to comment.