From c68ac4fb82b55f4ea6fcc28b4cef5f7ee38db238 Mon Sep 17 00:00:00 2001 From: VG Date: Mon, 11 Apr 2016 17:53:55 +0200 Subject: Auto-commit on 6d1dbe8495b5fafbc5f50d80268d0ca5b7b097be --- src/wqueue2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wqueue2.py b/src/wqueue2.py index 4c2cd4c..f60f947 100755 --- a/src/wqueue2.py +++ b/src/wqueue2.py @@ -13,7 +13,7 @@ import collections u8open = functools.partial(open, encoding='utf8') -class PersistentQueue3: +class PersistentQueue: def __init__(self, filename=None): self.queue = collections.deque() @@ -98,7 +98,7 @@ async def manage_client(reader, writer): async def jobs_runner(): - jobs = PersistentQueue3(filename='queue.txt') + jobs = PersistentQueue(filename='queue.txt') queue = [] while True: job = await jobs.get_job() -- cgit v1.2.3