Skip to content

Commit

Permalink
Use %d format string for every value that should be an integer decimal.
Browse files Browse the repository at this point in the history
Don't convert any of the values to an int. %d will do that conversion.
  • Loading branch information
mulkieran committed Mar 10, 2015
1 parent 8bd301e commit 7cc412f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blivet/devices/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7cc412f

Please sign in to comment.