Revert "Add comment in ClientDescriptor.to_dict and EventQueue.to_dict to avoid future bugs"

This reverts commit 45560539d09e9e1922130349be729005b786e632.

(imported from commit aa266941f03cdbe12f4315e65ec6c472cc207204)
This commit is contained in:
Tim Abbott
2013-11-28 11:44:43 -05:00
committed by Steve Howell
parent ebfcdfd35e
commit 5bc826067e

View File

@@ -60,9 +60,6 @@ class ClientDescriptor(object):
self.queue_timeout = max(IDLE_EVENT_QUEUE_TIMEOUT_SECS, min(self.queue_timeout, MAX_QUEUE_TIMEOUT_SECS))
def to_dict(self):
# If you add a new key to this dict, make sure you add appropriate
# migration code in from_dict or load_event_queues to account for
# loading event queues that lack that key.
return dict(user_profile_id=self.user_profile_id,
realm_id=self.realm_id,
event_queue=self.event_queue.to_dict(),
@@ -163,9 +160,6 @@ class EventQueue(object):
self.virtual_events = {}
def to_dict(self):
# If you add a new key to this dict, make sure you add appropriate
# migration code in from_dict or load_event_queues to account for
# loading event queues that lack that key.
return dict(id=self.id,
next_event_id=self.next_event_id,
queue=list(self.queue),