~styluseater/swift/lp610583

« back to all changes in this revision

Viewing changes to swift/common/utils.py

  • Committer: Tarmac
  • Author(s): Monty Taylor
  • Date: 2010-07-26 15:27:29 UTC
  • mfrom: (40.1.1 fix-pep8)
  • Revision ID: hudson@openstack.org-20100726152729-4dz6gc11ky2qvffi
Fixed PEP8 warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    :param length: length
99
99
    """
100
100
    # 4 means "POSIX_FADV_DONTNEED"
101
 
    ret = posix_fadvise(fd, ctypes.c_uint64(offset), ctypes.c_uint64(length), 4)
 
101
    ret = posix_fadvise(fd, ctypes.c_uint64(offset),
 
102
                        ctypes.c_uint64(length), 4)
102
103
    if ret != 0:
103
104
        print "posix_fadvise(%s, %s, %s, 4) -> %s" % (fd, offset, length, ret)
104
105
 
262
263
                    self._proxy(getattr(logger, proxied_method)))
263
264
 
264
265
    def _proxy(self, logger_meth):
 
266
 
265
267
        def _inner_proxy(msg, *args, **kwargs):
266
268
            msg = '%s %s' % (self.server, msg)
267
269
            logger_meth(msg, *args, **kwargs)