On Mon, Dec 16, 2013 at 4:11 PM, Thomas Thrainer <[email protected]> wrote: > pylint 0.26.0 on Python 2.7 generates a warning on the string '\ ', > recommending to use the r prefix. This patch adds the missing prefix. > > Signed-off-by: Thomas Thrainer <[email protected]> > --- > lib/hypervisor/hv_xen.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py > index bcd21a7..047e563 100644 > --- a/lib/hypervisor/hv_xen.py > +++ b/lib/hypervisor/hv_xen.py > @@ -434,7 +434,7 @@ class XenHypervisor(hv_base.BaseHypervisor): > cfg_file = cls._InstanceNICFile(instance_name, idx) > data = StringIO() > > - data.write("TAGS=%s\n" % "\ ".join(instance.GetTags())) > + data.write("TAGS=%s\n" % r"\ ".join(instance.GetTags())) > if nic.netinfo: > netinfo = objects.Network.FromDict(nic.netinfo) > for k, v in netinfo.HooksDict().iteritems(): > -- > 1.8.5.1 >
LGTM, thanks. Michele -- Google Germany GmbH Dienerstr. 12 80331 München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Christine Elizabeth Flores
