from __future__ import absolute_import
# Standard modules
-import sys
-import os
import logging
import locale
import re
import six
# Own modules
-from .common import pp, to_bytes, to_str
-
-from .errors import PpError
+from .common import pp, to_str
from .obj import PpBaseObjectError, PpBaseObject
-__version__ = '0.4.1'
+__version__ = '0.4.2'
LOG = logging.getLogger(__name__)
kilo = 1024
if six.PY2:
- kilo = long(1024)
+ kilo = long(1024) # noqa
human_limit = 1.5
"""The size of the entry in KiBytes."""
if not hasattr(self, '_size_kb'):
if six.PY2:
- return long(0)
+ return long(0) # noqa
return 0
return getattr(self, '_size_kb', 0)
@size_kb.setter
def size_kb(self, value):
if six.PY2:
- v = long(value)
+ v = long(value) # noqa
else:
v = int(value)
if v >= 0: