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 9, 2015
1 parent 9f9954d commit b023c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blivet/devices/partition.py
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 b023c7b

Please sign in to comment.