parameters: (cls, filename)
docstring: Open pickle database file for reading
          (accessed only from otrace thread)
docstring_summary: Open pickle database file for reading
          (accessed only from otrace thread)
docstring_tokens: Open pickle database file for reading ( accessed only from otrace thread )
function: def open_pickle_db(cls, filename):
          """Open pickle database file for reading
          (accessed only from otrace thread)
          """
          try:
              cls.read_file = filename
              if filename == cls.write_file:
                  cls.read_connection = cls.write_connection
              else:
                  if cls.read_connection and cls.read_connection is not cls.write_connection:
                      cls.read_connection.close()
                      cls.read_connection = None
                  cls.read_connection = sqlite3.connect(filename)
          except sqlite3.OperationalError, msg:
              logging.error("Error in reading pickle database %s: %s" % (cls.read_file, msg))
              raise
function_tokens: def open_pickle_db ( cls , filename ) : try : cls . read_file = filename if filename == cls . write_file : cls . read_connection = cls . write_connection else : if cls . read_connection and cls . read_connection is not cls . write_connection : cls . read_connection . close ( ) cls . read_connection = None cls . read_connection = sqlite3 . connect ( filename ) except sqlite3 . OperationalError , msg : logging . error ( "Error in reading pickle database %s: %s" % ( cls . read_file , msg ) ) raise