3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

IncrementalUIDGenerator: normalize SID to strings

This commit is contained in:
James Lu 2016-06-16 21:55:32 -07:00
parent 11bbbfba19
commit fa3d230ac9

View File

@ -34,7 +34,7 @@ class IncrementalUIDGenerator():
"%s by defining self.allowedchars and self.length " "%s by defining self.allowedchars and self.length "
"and then calling super().__init__()." % self.__class__.__name__) "and then calling super().__init__()." % self.__class__.__name__)
self.uidchars = [self.allowedchars[0]]*self.length self.uidchars = [self.allowedchars[0]]*self.length
self.sid = sid self.sid = str(sid)
def increment(self, pos=None): def increment(self, pos=None):
""" """