[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Change uuid string format to match that outputted by Xen.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |