mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
enable black on fdroidserver/asynchronousfilereader/__init__.py
This commit is contained in:
parent
2273d8203b
commit
32ea4ef19a
1 changed files with 2 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ Copyright (c) 2014 Stefaan Lippens
|
||||||
__version__ = '0.2.1'
|
__version__ = '0.2.1'
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Python 2
|
# Python 2
|
||||||
from Queue import Queue
|
from Queue import Queue
|
||||||
|
|
@ -53,4 +54,3 @@ class AsynchronousFileReader(threading.Thread):
|
||||||
"""Get currently available lines."""
|
"""Get currently available lines."""
|
||||||
while not self.queue.empty():
|
while not self.queue.empty():
|
||||||
yield self.queue.get()
|
yield self.queue.get()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue