WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Change uuid string format to match that outputted by Xen

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Change uuid string format to match that outputted by Xen.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Nov 2005 19:52:08 +0000
Delivery-date: Mon, 28 Nov 2005 19:52:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 7638cf95b63c97aeaa1b5f8a5860c363657f23e7
# Parent  d8786656ebabb03ae6076274aefc5f82c42e7cab
Change uuid string format to match that outputted by Xen.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r d8786656ebab -r 7638cf95b63c tools/python/xen/xend/uuid.py
--- a/tools/python/xen/xend/uuid.py     Mon Nov 28 12:21:17 2005
+++ b/tools/python/xen/xend/uuid.py     Mon Nov 28 16:48:25 2005
@@ -54,8 +54,7 @@
 
 
 def toString(u):
-    f = "%02x"
-    return ( "-".join([f*4, f*2, f*2, f*2, f*6]) % tuple(u) )
+    return "-".join(["%02x" * 4] * 4) % tuple(u)
 
 def fromString(s):
     s = s.replace('-', '')

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Change uuid string format to match that outputted by Xen., Xen patchbot -unstable <=