[master 2/2] Use %d format string for every value that should be an integer decimal.
mulkieran
installerbot-noreply at redhat.com
Mon Mar 9 21:03:45 UTC 2015
From: mulhern <amulhern at redhat.com>
Don't convert any of the values to an int. %d will do that conversion.
---
blivet/devices/partition.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
index 01f2c88..2f1d6fc 100644
--- a/blivet/devices/partition.py
+++ b/blivet/devices/partition.py
@@ -552,8 +552,8 @@ def _wipe(self):
count = min(count, part_len)
device = self.partedPartition.geometry.device.path
- cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%d" % int(bs),
- "seek=%s" % start, "count=%s" % count]
+ cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%d" % bs,
+ "seek=%d" % start, "count=%d" % count]
try:
util.run_program(cmd)
except OSError as e:
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/b023c7b85922aae68fa40b871761b33365dd4c76
More information about the anaconda-patches
mailing list