mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-22 18:39:31 +01:00
Fix 2to3 progression percentage (no long go over 100%).
This commit is contained in:
parent
9b36fc9427
commit
29de1e137d
3
setup.py
3
setup.py
@ -36,6 +36,7 @@ import time
|
||||
import datetime
|
||||
import tempfile
|
||||
import subprocess
|
||||
from math import ceil
|
||||
|
||||
debug = '--debug' in sys.argv
|
||||
|
||||
@ -142,7 +143,7 @@ try:
|
||||
if self._total_files//10 != 0 and \
|
||||
self._refactored_files % (self._total_files//10) == 0:
|
||||
print('Refactoring files: %i%% (%i on %i).' %
|
||||
(self._refactored_files/(self._total_files//10)*10,
|
||||
(ceil(self._refactored_files*100./self._total_files),
|
||||
self._refactored_files, self._total_files))
|
||||
self._refactored_files += 1
|
||||
return super(DistutilsRefactoringTool, self).refactor_file(
|
||||
|
Loading…
Reference in New Issue
Block a user