Commits

Tomasz Stachowiak committed 2688d06

upload script line overflow fix

Comments (0)

Files changed (1)

incremental_update.py

 
 if total_upload_size > 0:
     def update_progress_bar( item, total_upload_done ):
+        assert len(item.reason) <= 8
         progress_bar_width = 20
-        file_name_width = 40
+        file_name_width = 35
         max_line_width = 79
 
         i = progress_bar_width * total_upload_done / total_upload_size
         else:
             bar += item.fpath
         bar += '"'
-        assert len( bar ) <= max_line_width
+        assert len( bar ) <= max_line_width, bar
         bar += ' ' * ( max_line_width - len( bar ) )
         sys.stdout.write( '\r' + bar )