Bug 1549636: use uuid4() in mach; r=glandium
authorManish Goregaokar <manishearth@gmail.com>
Tue, 07 May 2019 02:34:53 +0000
changeset 531649 7aee5a30dd15cf0e203705808de4fc84cd56393d
parent 531648 f1d9dca026c389f6c1cc1f71b695a565fd129a13
child 531661 6fd64908d113d7cdf085be1e2858e10dd69643e3
child 531662 88ce0c2df4d2e3cd324ce99a48e43a55bb695051
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1549636
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1549636: use uuid4() in mach; r=glandium Differential Revision: https://phabricator.services.mozilla.com/D30147
python/mach/mach/main.py
--- a/python/mach/mach/main.py
+++ b/python/mach/mach/main.py
@@ -255,17 +255,17 @@ To see more help for a specific command,
         """
         if module_name is None:
             # Ensure parent module is present otherwise we'll (likely) get
             # an error due to unknown parent.
             if b'mach.commands' not in sys.modules:
                 mod = imp.new_module(b'mach.commands')
                 sys.modules[b'mach.commands'] = mod
 
-            module_name = 'mach.commands.%s' % uuid.uuid1().get_hex()
+            module_name = 'mach.commands.%s' % uuid.uuid4().get_hex()
 
         try:
             imp.load_source(module_name, path)
         except IOError as e:
             if e.errno != errno.ENOENT:
                 raise
 
             raise MissingFileError('%s does not exist' % path)