Replace uuid().hex with just uuid()
This commit is contained in:
parent
059360ac76
commit
2b90829020
6 changed files with 8 additions and 8 deletions
|
|
@ -129,7 +129,7 @@ class CaptureObject(object):
|
|||
"""Create a new StreamObject, to manage capture data."""
|
||||
|
||||
# Store a nice ID
|
||||
self.id = uuid.uuid4().hex #: str: Unique capture ID
|
||||
self.id = uuid.uuid4() #: str: Unique capture ID
|
||||
logging.debug("Created StreamObject {}".format(self.id))
|
||||
self.timestring = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue