提交 c156922c 编写于 作者: P Paolo Bonzini

port avocado.utils.filelock to Python 3

Use the new "b'' % foo" formats from PEP461.
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 d60b0003
......@@ -42,7 +42,7 @@ class FileLock(object):
def __init__(self, filename, timeout=0):
self.filename = '%s.lock' % filename
self.pid = str(os.getpid())
self.pid = b'%r' % os.getpid()
self.locked = False
self.timeout = timeout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册