From e6067887dd33fd47d03c2f979661bce15f1417f2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Mar 2018 16:25:34 +0300 Subject: fix Pylint warnings --- bin/mutual_friends.py | 2 +- bin/online_sessions.py | 3 +-- bin/track_status.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/mutual_friends.py b/bin/mutual_friends.py index c17c6b3..82015bb 100644 --- a/bin/mutual_friends.py +++ b/bin/mutual_friends.py @@ -9,7 +9,7 @@ from collections import OrderedDict from enum import Enum import sys -from vk.api import API, Language +from vk.api import API from vk.user import UserField from .utils import io diff --git a/bin/online_sessions.py b/bin/online_sessions.py index c291fc5..670a8c3 100644 --- a/bin/online_sessions.py +++ b/bin/online_sessions.py @@ -258,8 +258,7 @@ class OutputFormat(Enum): def open_file(self, path=None): if self is OutputFormat.PLOT: return io.open_output_binary_file(path) - else: - return io.open_output_text_file(path) + return io.open_output_text_file(path) def _parse_group_by(s): try: diff --git a/bin/track_status.py b/bin/track_status.py index c61f242..9c32ae9 100644 --- a/bin/track_status.py +++ b/bin/track_status.py @@ -5,7 +5,7 @@ import argparse, sys -from vk.api import API, Language +from vk.api import API from vk.tracking import StatusTracker from vk.tracking.db import Format as DatabaseFormat -- cgit v1.2.3