[BACK]Return to tools.py CVS log [TXT][DIR] Up to [pgFoundry] / pgloader / pgloader / pgloader

Diff for /pgloader/pgloader/pgloader/tools.py between version 1.13 and 1.14

version 1.13, 2008/03/10 14:39:38 version 1.14, 2008/09/17 16:55:30
Line 2 
Line 2 
 #  #
 # pgloader librairies  # pgloader librairies
   
 import os, sys, os.path, time, codecs, collections  import os, sys, os.path, time, codecs
 from cStringIO import StringIO  from cStringIO import StringIO
   
 from options import DRY_RUN, PEDANTIC  from options import DRY_RUN, PEDANTIC
Line 194  def check_events(events, log, context = 
Line 194  def check_events(events, log, context = 
         log.debug("thread %s %s" % (t, context))          log.debug("thread %s %s" % (t, context))
   
     return      return
   
 class RRReader(collections.deque):  
     """ Round Robin reader, which are collections.deque with a  
     readlines() method"""  
   
     def readlines(self):  
         """ return next line from queue """  
         while 1:  
             try:  
                 yield self.popleft()  
             except IndexError:  
                 return  

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

PgFoundry-cvsweb <pgfoundry-cvsweb@pgFoundry.org>