calcrepo/repo.py
def openIndex(self, filename, description):
		"""Attempt to delete and recreate an index, returns open file object or None."""
		try:
			os.remove(filename)
			self.printd("  Deleted old " + description)
		except:
			self.printd("  No " + description + " found")
			
		# Now, attempt to open a new index
		try:
			files = open(filename, 'wt')
		except:
			self.printd("Error: Unable to create file " + filename + " in current folder. Quitting.")
			return None
		return files
Attempt to delete and recreate an index, returns open file object or None.
Attempt to delete and recreate an index, returns open file object or None.
Attempt to delete and recreate an index returns open file object or None .
def openIndex(self, filename, description):
		try:
			os.remove(filename)
			self.printd("  Deleted old " + description)
		except:
			self.printd("  No " + description + " found")
		try:
			files = open(filename, 'wt')
		except:
			self.printd("Error: Unable to create file " + filename + " in current folder. Quitting.")
			return None
		return files
def openIndex ( self , filename , description ) : try : os . remove ( filename ) self . printd ( "  Deleted old " + description ) except : self . printd ( "  No " + description + " found" ) try : files = open ( filename , 'wt' ) except : self . printd ( "Error: Unable to create file " + filename + " in current folder. Quitting." ) return None return files
Attempt to delete and recreate an index, returns open file object or None.
Attempt to delete and recreate an index returns open file object or None .
"""Attempt to delete and recreate an index, returns open file object or None.""" # Now, attempt to open a new index
self
filename
description