X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Futil.py;h=67bd9a1be30d230f7be2c0bdf4d9a32b4a1c3ba3;hp=b4c859944cd447ff4a201336e28e7ae98717f3f3;hb=98531ab4a0e4e065d3b11b051b3e4bd7653c6ac0;hpb=e6b6d095d23af595e207bb278697e1b9423fbc53 diff --git a/TLD_Builder/util.py b/TLD_Builder/util.py index b4c8599..67bd9a1 100644 --- a/TLD_Builder/util.py +++ b/TLD_Builder/util.py @@ -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