Permalink
Browse files

more pythonic lexicaluuid

  • Loading branch information...
1 parent 7ec08dd commit 43fecbf83e1355288a222cc575abb79583bf93f4 @ssutch ssutch committed Feb 11, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 pynamo/lexical_uuid.py
View
@@ -51,11 +51,9 @@ def __call__(self):
class LexicalUUID(object):
worker_id = fnv1a_64("{}-{}".format(socket.getfqdn(), os.getpid()))
+ timestamp_factory = IncreasingMicrosecondClock()
- def __init__(self, value=None, worker_id=None,
- timestamp_factory=IncreasingMicrosecondClock):
- self.timestamp_factory = timestamp_factory()
-
+ def __init__(self, value=None, worker_id=None):
if isinstance(value, self.__class__):
self.timestamp = value.timestamp
self.worker_id = value.worker_id

0 comments on commit 43fecbf

Please sign in to comment.