diff options
Diffstat (limited to 'ranger/ext/human_readable.py')
-rw-r--r-- | ranger/ext/human_readable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/human_readable.py b/ranger/ext/human_readable.py index c8c15946..1a3d1ec9 100644 --- a/ranger/ext/human_readable.py +++ b/ranger/ext/human_readable.py @@ -13,13 +13,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import math + ONE_KB = 1024 UNITS = 'BKMGTP' MAX_EXPONENT = len(UNITS) - 1 def human_readable(byte, seperator=' '): - import math - if not byte: return '0' |