diff options
Diffstat (limited to '')
-rw-r--r-- | bin/mutual_friends.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/mutual_friends.py b/bin/mutual_friends.py index 1d231b0..f67f987 100644 --- a/bin/mutual_friends.py +++ b/bin/mutual_friends.py @@ -12,7 +12,7 @@ import sys from vk.api import API, Language from vk.user import UserField -from .utils import output +from .utils import io _OUTPUT_USER_FIELDS = UserField.UID, UserField.FIRST_NAME, UserField.LAST_NAME @@ -32,7 +32,7 @@ class OutputSinkMutualFriends(metaclass=abc.ABCMeta): class OutputSinkCSV(OutputSinkMutualFriends): def __init__(self, fd=sys.stdout): - self._writer = output.FileWriterCSV(fd) + self._writer = io.FileWriterCSV(fd) def write_mutual_friends(self, friend_list): for user in friend_list: @@ -40,7 +40,7 @@ class OutputSinkCSV(OutputSinkMutualFriends): class OutputSinkJSON(OutputSinkMutualFriends): def __init__(self, fd=sys.stdout): - self._writer = output.FileWriterJSON(fd) + self._writer = io.FileWriterJSON(fd) def write_mutual_friends(self, friend_list): self._writer.write(friend_list) @@ -54,7 +54,7 @@ class OutputFormat(Enum): @staticmethod def open_file(path=None): - return output.open_output_text_file(path) + return io.open_output_text_file(path) def create_sink(self, fd=sys.stdout): if self is OutputFormat.CSV: |