Commit 78544007 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

vidjil_utils.py, format_size: correct doctest

parent 2fe62fcb
...@@ -7,9 +7,9 @@ def format_size(n): ...@@ -7,9 +7,9 @@ def format_size(n):
Example: Example:
>>> format_size(1000000) >>> format_size(1000000)
1.0 MB '1.0 MB'
>>> format_size(1024*1014*1024) >>> format_size(1024*1024*1024)
1.073 GB '1.073 GB'
''' '''
size = math.floor((n/1000)/1000) size = math.floor((n/1000)/1000)
if size > 1000 : if size > 1000 :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment