From 556f878fc45ebe13668f5341b9b088725c2b396f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 23 Jan 2009 10:32:20 +0530 Subject: [PATCH] ms can be 0 --- oxlib/format.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oxlib/format.py b/oxlib/format.py index cf7b102..62bd1ca 100644 --- a/oxlib/format.py +++ b/oxlib/format.py @@ -174,7 +174,7 @@ def formatDuration(ms, verbosity=0, years=True, hours=True, milliseconds=True): >>> formatDuration(1000 * 30, hours=False, milliseconds=False) '00:30' ''' - if not ms: + if not ms and ms != 0: return '' if years: y = int(ms / 31536000000) diff --git a/setup.py b/setup.py index e8e4cdd..4b5e00f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages setup( name="oxlib", version="0.1", - description="python-oxlib some tools to build toos", + description="python-oxlib some tools to build tools", author="0x", author_email="code@0xdb.org", url="http://code.0xdb.org/oxlib",