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:
hussainchachuliya 2016-09-22 18:59:48 +05:30
parent c40b5fbc1d
commit 2a5b7773af
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class UUIDSentinels(object):
if name.startswith('_'):
raise ValueError('Sentinels must not start with _')
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]