commit/galaxy-central: jgoecks: Correct size abbreviation to use uppercase B for bytes.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/099692958fca/ changeset: 099692958fca user: jgoecks date: 2012-07-27 11:08:01 summary: Correct size abbreviation to use uppercase B for bytes. affected #: 1 file diff -r e3a62476b0cd6eacdff24311860507311fb03808 -r 099692958fcaaf9ade3c1fb430aca6860f114fe9 lib/galaxy/util/__init__.py --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -571,13 +571,13 @@ >>> nice_size(100) '100 bytes' >>> nice_size(10000) - '9.8 Kb' + '9.8 KB' >>> nice_size(1000000) - '976.6 Kb' + '976.6 KB' >>> nice_size(100000000) - '95.4 Mb' + '95.4 MB' """ - words = [ 'bytes', 'Kb', 'Mb', 'Gb', 'Tb' ] + words = [ 'bytes', 'KB', 'MB', 'GB', 'TB' ] try: size = float( size ) except: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket