]> Frank Brehm's Git Trees - pixelpark/admin-tools.git/commitdiff
Applying flake8 rules to pp_lib/format_du.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 6 Feb 2018 14:41:07 +0000 (15:41 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 6 Feb 2018 14:41:07 +0000 (15:41 +0100)
pp_lib/format_du.py

index f2457ddce29df89a4dd6f97becf20276c376879e..0948248907d7cf2c956979c6ab68e66f13bfe169 100644 (file)
@@ -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