diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-19 01:36:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-19 01:36:19 +0300 |
commit | dd88c8103e13f108a0fed51a82221fdf60f6a188 (patch) | |
tree | 14c0038cd71f9e4a8208278b4e9b5f67e1a91c47 /vk/tracking/db/format.py | |
parent | remove commented out code (diff) | |
download | vk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.tar.gz vk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.zip |
add Pylint configuration & fix the warnings
Diffstat (limited to 'vk/tracking/db/format.py')
-rw-r--r-- | vk/tracking/db/format.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vk/tracking/db/format.py b/vk/tracking/db/format.py index 4856094..862c20e 100644 --- a/vk/tracking/db/format.py +++ b/vk/tracking/db/format.py @@ -4,7 +4,7 @@ from enum import Enum -from .backend import * +from . import backend class Format(Enum): CSV = 'csv' @@ -13,21 +13,21 @@ class Format(Enum): def create_writer(self, fd): if self is Format.CSV: - return csv.Writer(fd) + return backend.csv.Writer(fd) elif self is Format.LOG: - return log.Writer(fd) + return backend.log.Writer(fd) elif self is Format.NULL: - return null.Writer(fd) + return backend.null.Writer(fd) else: raise NotImplementedError('unsupported database format: ' + str(self)) def create_reader(self, fd): if self is Format.CSV: - return csv.Reader(fd) + return backend.csv.Reader(fd) elif self is Format.LOG: raise NotImplementedError() elif self is Format.NULL: - return null.Reader(fd) + return backend.null.Reader(fd) else: raise NotImplementedError('unsupported database format: ' + str(self)) |