From 32ea4ef19ac45bcb8f551b2eb78623bd75d28f54 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 24 Apr 2023 15:19:07 +0200 Subject: [PATCH] enable black on fdroidserver/asynchronousfilereader/__init__.py --- fdroidserver/asynchronousfilereader/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/asynchronousfilereader/__init__.py b/fdroidserver/asynchronousfilereader/__init__.py index 9cdd7c91..7ba02b69 100644 --- a/fdroidserver/asynchronousfilereader/__init__.py +++ b/fdroidserver/asynchronousfilereader/__init__.py @@ -12,6 +12,7 @@ Copyright (c) 2014 Stefaan Lippens __version__ = '0.2.1' import threading + try: # Python 2 from Queue import Queue @@ -22,7 +23,7 @@ except ImportError: class AsynchronousFileReader(threading.Thread): """Helper class to implement asynchronous reading of a file in a separate thread. - + Pushes read lines on a queue to be consumed in another thread. """ @@ -53,4 +54,3 @@ class AsynchronousFileReader(threading.Thread): """Get currently available lines.""" while not self.queue.empty(): yield self.queue.get() -