aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index a2f7738..ca4849f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1684,7 +1684,7 @@ class Mastodon:
1684 self._thread = threading.current_thread() 1684 self._thread = threading.current_thread()
1685 with closing(connection) as r: 1685 with closing(connection) as r:
1686 try: 1686 try:
1687 listener.handle_stream(r.iter_lines(chunk_size = 1, decode_unicode = True)) 1687 listener.handle_stream(r)
1688 except AttributeError as e: 1688 except AttributeError as e:
1689 if not self.closed: 1689 if not self.closed:
1690 raise e 1690 raise e
@@ -1699,7 +1699,7 @@ class Mastodon:
1699 else: 1699 else:
1700 # Blocking, never returns (can only leave via exception) 1700 # Blocking, never returns (can only leave via exception)
1701 with closing(connection) as r: 1701 with closing(connection) as r:
1702 listener.handle_stream(r.iter_lines()) 1702 listener.handle_stream(r)
1703 1703
1704 def __generate_params(self, params, exclude=[]): 1704 def __generate_params(self, params, exclude=[]):
1705 """ 1705 """
Powered by cgit v1.2.3 (git 2.41.0)