1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-31 11:42:05 +00:00

Fix a few minor coding style issues

This commit is contained in:
Jonas Borgström 2012-07-31 14:43:32 +02:00
parent d58784d738
commit 12786a8833

View file

@ -374,7 +374,7 @@ def __str__(self):
items.append('user=%r' % self.user)
items.append('host=%r' % self.host)
items.append('port=%r' % self.port)
items.append('path=%r'% self.path)
items.append('path=%r' % self.path)
items.append('archive=%r' % self.archive)
return ', '.join(items)
@ -406,9 +406,10 @@ def read_msgpack(filename):
with open(filename, 'rb') as fd:
return msgpack.unpack(fd)
def write_msgpack(filename, d):
with open(filename+'.tmp', 'wb') as fd:
with open(filename + '.tmp', 'wb') as fd:
msgpack.pack(d, fd)
fd.flush()
os.fsync(fd)
os.rename(filename+'.tmp', filename)
os.rename(filename + '.tmp', filename)