]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/util.py
- python 3.x fixes
[tld-builder.git] / TLD_Builder / util.py
index b4c859944cd447ff4a201336e28e7ae98717f3f3..67bd9a1be30d230f7be2c0bdf4d9a32b4a1c3ba3 100644 (file)
@@ -11,10 +11,10 @@ def uuid_python():
 
 def uuid_external():
     f = os.popen("uuidgen 2>&1")
-    u = string.strip(f.read())
+    u = f.read().strip()
     f.close()
     if len(u) != 36:
-        raise Exception, "uuid: fatal, cannot generate uuid: %s" % u
+        raise Exception("uuid: fatal, cannot generate uuid: %s" % u)
     return u
 
 # uuid module available in python >= 2.5