python-apt: pep8 fix on previous patch
This commit is contained in:
parent
d5a378705b
commit
44b8a7392d
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ diff -ru source.orig/apt/progress/base.py source/apt/progress/base.py
|
|||
elif status == "pmstatus":
|
||||
- # FIXME: Float comparison
|
||||
+ if isinstance(percent, str):
|
||||
+ percent = float(percent.replace(',' , '.'))
|
||||
+ percent = float(percent.replace(',', '.'))
|
||||
if float(percent) != self.percent or status_str != self.status:
|
||||
self.status_change(pkgname, float(percent), status_str.strip())
|
||||
self.percent = float(percent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue