Loading cloudcontrol/node/hypervisor/lib.py +3 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ """Helpers for libvirt.""" import logging from itertools import chain, imap from itertools import chain, imap, count from StringIO import StringIO from xml.etree import cElementTree as et Loading Loading @@ -195,14 +195,8 @@ class EventLoop(object): """ self.loop = loop def counter(): count = 0 while True: yield count count += 1 self.handle_id = counter() self.timer_id = counter() self.handle_id = count() self.timer_id = count() self.handles = dict() self.timers = dict() Loading Loading
cloudcontrol/node/hypervisor/lib.py +3 −9 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ """Helpers for libvirt.""" import logging from itertools import chain, imap from itertools import chain, imap, count from StringIO import StringIO from xml.etree import cElementTree as et Loading Loading @@ -195,14 +195,8 @@ class EventLoop(object): """ self.loop = loop def counter(): count = 0 while True: yield count count += 1 self.handle_id = counter() self.timer_id = counter() self.handle_id = count() self.timer_id = count() self.handles = dict() self.timers = dict() Loading