Remove redundant str typecasting
generate_uuid method returns uuid as str so there is no need to typecast it to str again. TrivialFix Change-Id: I1c9cb410a175249467c4934d6820f55a63aaed6a
This commit is contained in:
parent
c40b5fbc1d
commit
2a5b7773af
|
@ -23,7 +23,7 @@ class UUIDSentinels(object):
|
||||||
if name.startswith('_'):
|
if name.startswith('_'):
|
||||||
raise ValueError('Sentinels must not start with _')
|
raise ValueError('Sentinels must not start with _')
|
||||||
if name not in self._sentinels:
|
if name not in self._sentinels:
|
||||||
self._sentinels[name] = str(self._uuid_module.generate_uuid())
|
self._sentinels[name] = self._uuid_module.generate_uuid()
|
||||||
return self._sentinels[name]
|
return self._sentinels[name]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue