Skip to content

Commit

Permalink
Update generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bossOfCode authored Aug 23, 2024
1 parent e2fe829 commit ea995fb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ def print_in_os(argument):
os.system(f"{argument}")

if VERSION in versions or namespace in namespaces:
if VERSION == 1:
OUTPUT = str(uuid.uuid1())
else:
if VERSION == 3:
OUTPUT = str(uuid.uuid3(str("NAMESPACES_" + namespace), name))
else:
if VERSION == 4:
OUTPUT = str(uuid.uuid4())
else:
if VERSION == 5:
OUTPUT = str(uuid.uuid5(str("NAMESPACES_" + namespace), name))
OUTPUT = str(uuid.uuid{VERSION}())
else:
if namespace in namespaces:
sys.exit(f"ERROR: namespace cannot be {namespace}; must be either DNS, URL, OID, or X500.")
Expand Down

0 comments on commit ea995fb

Please sign in to comment.