diff options
author | Gökçen Nurlu <gnurlu1@bloomberg.net> | 2017-11-13 10:22:12 +0000 |
---|---|---|
committer | Gökçen Nurlu <gnurlu1@bloomberg.net> | 2017-11-17 11:46:34 +0000 |
commit | 3b17762a4cab23c238762ca32baa348788347473 (patch) | |
tree | 3f709fac5b116154c8535abd44f878ba96a8eab0 /buildstream/_fuse | |
parent | 44b00de090348f94d27998e5378c1beef0db6296 (diff) | |
download | buildstream-3b17762a4cab23c238762ca32baa348788347473.tar.gz |
Switch old-style string formattings to new '.format()'
Diffstat (limited to 'buildstream/_fuse')
-rw-r--r-- | buildstream/_fuse/fuse.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_fuse/fuse.py b/buildstream/_fuse/fuse.py index f0ad96fba..89173ba11 100644 --- a/buildstream/_fuse/fuse.py +++ b/buildstream/_fuse/fuse.py @@ -268,7 +268,7 @@ elif _system == 'Linux': ('st_ctimespec', c_timespec), ('st_ino', c_ulonglong)] else: - raise NotImplementedError('%s is not supported.' % _system) + raise NotImplementedError('{} is not supported.'.format(_system)) class c_statvfs(Structure): @@ -507,7 +507,7 @@ class FUSE(object): if isinstance(value, bool): if value is True: yield key else: - yield '%s=%s' % (key, value) + yield '{}={}'.format(key, value) @staticmethod def _wrapper(func, *args, **kwargs): @@ -608,7 +608,7 @@ class FUSE(object): retsize = len(ret) assert retsize <= size, \ - 'actual amount read %d greater than expected %d' % (retsize, size) + 'actual amount read {:d} greater than expected {:d}'.format(retsize, size) data = create_string_buffer(ret, retsize) memmove(buf, data, retsize) |