From: Simeon Veldstra Date: Fri, 16 Feb 2007 01:10:43 +0000 (-0800) Subject: Tweaked file size units parsing. X-Git-Tag: v0.5.11 X-Git-Url: http://puddle.ca/cgi-bin/gitweb.cgi?p=mp3togo;a=commitdiff;h=4249e8ac8e1446b5dfe4c385e5b13aa8192f6e83 Tweaked file size units parsing. --- --- a/mp3togo/__init__.py +++ b/mp3togo/__init__.py @@ -21,5 +21,5 @@ # __all__ = ('converter', 'main', 'options', 'setup') -version = '0.5.10' +version = '0.5.11' --- a/mp3togo/conf.py +++ b/mp3togo/conf.py @@ -204,6 +204,8 @@ Description: def _units(self, name, value): #Calculate raw bytes and set [max|temp|cache]size try: + if value[-1] in ('b', 'B'): + value = value[:-1] if value[-1] in ('m', 'M'): max = long(value[:-1]) * 1048576L elif value[-1] in ('g', 'G'):