From 73fae37bd3b33c4ae57b700071fd2c33b021b053 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 6 Feb 2018 15:41:07 +0100 Subject: [PATCH] Applying flake8 rules to pp_lib/format_du.py --- pp_lib/format_du.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pp_lib/format_du.py b/pp_lib/format_du.py index f2457dd..0948248 100644 --- a/pp_lib/format_du.py +++ b/pp_lib/format_du.py @@ -13,20 +13,16 @@ import logging import textwrap import sys import copy -import random # Third party modules import six # Own modules -from .common import pp, to_bytes, to_str - -from .errors import FunctionNotImplementedError, PpAppError +from .common import pp from .app import PpApplication -from .du import DuError, DuParseError, DuListError -from .du import DuEntry +from .du import DuParseError, DuEntry from .du import DU_UNITS, DU_UNIT_EXP try: @@ -34,7 +30,7 @@ try: except ImportError: from .global_version import __version__ as my_version -__version__ = '0.4.3' +__version__ = '0.4.4' LOG = logging.getLogger(__name__) @@ -123,7 +119,6 @@ class FormatDuApp(PpApplication): 'the standard input will be read.'), ) - # ------------------------------------------------------------------------- def perform_arg_parser(self): """ @@ -188,7 +183,7 @@ class FormatDuApp(PpApplication): total = 0 if six.PY2: - total = long(0) + total = long(0) # noqa while not eof: lnr += 1 -- 2.39.5