From 7112abbe5dd8aebf44c097043f413a0542c05e5c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 28 Jan 2017 03:11:23 +0300 Subject: add abstract classes for db readers/writers --- vk/tracking/db/backend/null.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vk/tracking/db/backend/null.py') diff --git a/vk/tracking/db/backend/null.py b/vk/tracking/db/backend/null.py index 3cdb41e..663af10 100644 --- a/vk/tracking/db/backend/null.py +++ b/vk/tracking/db/backend/null.py @@ -3,9 +3,9 @@ # For details, see https://github.com/egor-tensin/vk-scripts. # Distributed under the MIT License. -from collections.abc import Iterable +from .. import meta -class Writer: +class Writer(meta.Writer): def __init__(self): pass @@ -18,9 +18,9 @@ class Writer: def on_connection_error(self, e): pass -class Reader(Iterable): +class Reader(meta.Reader): def __init__(self): pass def __iter__(self): - pass + return iter(()) -- cgit v1.2.3