Change uuid string format to match that outputted by Xen.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-11-28 16:48:25 +00:00
1 parent 08006b1a91
commit 81f77d8400
1 file changed
+1 -2
+1 -2
View File
@@ -54,8 +54,7 @@ def create():
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('-', '')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.